Getting “no runners online error message” when merge pipeline runs
Describe your question in as much detail as possible:
We are using shell runner in Linux platform with gitlab.com
I have enabled merge pipeline in my cicd configuration in gitlab project settings.
We are getting “no runners online or assigned” error message when a pipeline runs on a merge request.
-
What are you seeing, and how does that differ from what you expect to see?
We are getting “no runners online or assigned” error message when a pipeline runs on a merge request.
The pipeline should run successfully when a merge request is initiated. -
Consider including screenshots, error messages, and/or other helpful visuals
-
What version are you on? Are you using self-managed or GitLab.com?
-
GitLab (Hint:
/help
): gitlab.com -
Runner (Hint:
/admin/runners
): 15.10.0
-
GitLab (Hint:
-
Add the CI configuration from
.gitlab-ci.yml
and other configuration if relevant (e.g. docker-compose.yml)
workflow:
rules:
- if: $CI_PIPELINE_SOURCE == ‘merge_request_event’
- if: $CI_COMMIT_BRANCH == “main” && $CI_PIPELINE_SOURCE == “push”
stages: # List of stages for jobs, and their order of execution
- build
prepare: # This job runs in the build stage, which runs first.
stage: build
script:
- echo “Building the angular project and dockerizing it”
- docker build -t test-management-ui:latest .
- What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
When i force the gitlab-runner to pick the jobs using run parameter, then gitlab-runner shows forbidden error message for that job.
But the same gitlab-runner can pick up the jobs and complete it as soon as i remove the merge based pipeline execution condition.
Thanks for taking the time to be thorough in your request, it really helps!