0

I am working with gitlab ci and I need the job to run only when the branch is release/ and if it is any other branch the job will not run.

I have tried to do it in many ways but none of them works, I would appreciate if you could help me, because I don't know what else to try.

Iñigo
  • 3
  • 2

1 Answers1

1

Have a look at the rules block and common if clauses for rules.

For your specific question adding the following should work:

rules:
  - if: $CI_COMMIT_BRANCH =~ /^release/
matsu
  • 316
  • 2
  • 6