How do I make an activated specific gitlab runner work?
My work is pending and appears below the message:
This task gets stuck because you have no active members who can complete this task.
But I have an activated runner available for this project:
The runner is installed as docker in one of my vps:
Below is the configuration for this runner:
concurrent = 1 check_interval = 0
["ansible" url = "https://gitlab.com/" token = "xxx" executor = "docker" [ ] tls_verify = false image = "registry.cn-hangzhou.aliyuncs.com/artwater/ansible:latest" privileged = false disable_cache = false volumes = ["/cache"] [ ]]] name =
below is my gitlab-ci.yml:
stages: build production job_build: stage: build script: ansible-playbook -i ./ansible/hosts/production.yml --extra-vars "version=$CI_BUILD_TAG" ./ansible/build.yml only: tags job_production: stage: production script: ansible-playbook -i ./ansible/hosts/production.yml --extra-vars "version=$CI_BUILD_TAG" ./ansible/deploy.yml only: tags when: on_success
Can someone please let me know how I can get this runner to work? Many thanks!
source to share
If you have problems with gitlab-runner try following command to debug. You will get more information about where things go wrong.
sudo gitlab-runner -debug run
Mental tags are in the pipeline if the runner is not an untagged type and you can edit the runner config in the gitlab creeping edit form.
In particular, the runner checks the work; someday the runner's task will be pending because it cannot detect work.
Once the debug job is started, the command line starts quickly if the configuration is correct.
source to share