2

I'm trying to write a windows batch file to automate the gitlab runner registration :

SET /p token=Token ?:
gitlab-runner register --locked false --run-untagged true --tag-list java --name foo --token %token% --url https://myurl --executor

I found the parameters in help documentation (gitlab-runner register --help) but it doesn't care about them. It still continues to ask question whose answers are in the parameters.

Thanks for helping

1 Answer 1

3

You're missing the --non-interactive tag to your registration command.

Full command should be:

gitlab-runner register --non-interactive --locked false --run-untagged true --tag-list java --name foo --registration-token %token% --url https://myurl --executor shell

Relevant documentation for non-interactive registration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.