Origin
Origin

Reputation: 1417

Gitlab Pipeline getting skipped

i am running my jobs on gitlab ci. I have a job which should run when i create a branch starting with test. I have used the below rule for it.

  rules:
    - if: $CI_COMMIT_REF_NAME =~ /^test/

But when i create branch no pipeline runs. It shows as status skipped.

enter image description here

Found the reason for the skipping.Suppose I am creating the branch from master. If the last commit on master was commit: message [skip-ci]. ie skipping ci. Then when branch is created from master the pipeline is skipped. Is there anyway I could avoid this skipping on my test branch created from master

Upvotes: 2

Views: 5593

Answers (1)

Matthias
Matthias

Reputation: 3930

Just gonna say if anyone sees this, another reason a stage can be skipped is if it needs a stage to run before it, and that stage is manual.

In which case you have to run the manual stage first for this to be able to run.

Upvotes: 0

Related Questions