Sign in or sign up before continuing. Don't have an account yet? Register now to get started.
Register now

"Could not connect to the CI server" error, which should not be thrown

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Summary

Error using GitLab CI except tag with regexp

Steps to reproduce

  • Create a merge request

  • Implement a CI config file with a single job there. In an except tag, define a regular expression, which does not match the branch name, which is currently checked out and push the code. Example:

image: docker:17.12.1-ce

stages:
  - test

test:
  stage: test
  script:
    - sleep 1m 
    - echo "test"
  except:
    - /.*something-with-no-matches.*$/
  • Let the pipeline run

  • Change the regexp so it will match the branch name and push the code (so now the job must not run) Example:

except:
    - /.*match.*$/
  • In merge request page will be an error Could not connect to the CI server. Please check your settings and try again

What is the current bug behavior?

Error message is shown

What is the expected correct behavior?

No pipelines run

Edited Jun 24, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading