CI - Pipeline with no jobs is failing
I have, say, two jobs script1
and script2
in .gitlab-ci.yml
. script1
runs whenever there is a change in the directory script1
; likewise script2
.
Take a look at the file:
script1:
only:
refs:
- merge_requests
- master
changes:
- script1/**/*
script: echo 'script1 done'
script2:
only:
refs:
- merge_requests
- master
changes:
- script2/**/*
script: echo 'script2 done'
The job(s) is/are succeeding as expected for a change in script1
, a change in script2
, and change in both the directories. But when there is no change in either directory, the pipeline is failing.
In the overview, Gitlab gives the message
Could not retrieve the pipeline status. For troubleshooting steps, read the
documentation
.
In the Pipelines
tab, I have the option Run pipeline
, clicking on which gives the error
An error occurred while trying to run a new pipeline for this Merge Request.