Draft: Add CI variable CI_COMMIT_HAS_OTHER_PIPELINES
What does this MR do and why?
This MR adds a new CI variable CI_COMMIT_HAS_OTHER_PIPELINES
, which is used for determining if there is another pipeline with the same sha
. It returns either true
as a string or nothing.
Related to #15170 (closed)
(previous attempt: !80164 (closed))
Screenshots or screen recordings
Example config:
workflow:
rules:
- if: $CI_COMMIT_HAS_OTHER_PIPELINES
when: never
- when: always
test:
script: echo $CI_COMMIT_HAS_OTHER_PIPELINES
When I commit this change, I get a pipeline;
However, I cannot create a new pipeline with the same commit sha:
Or there is no new pipeline after I create a new branch;
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #15170 (closed)
Edited by Furkan Ayhan