Closed joshfriend closed 4 years ago
CI_PIPELINE_ID is shared between all projects and will increase very rapidly if you have lots of projects and builds, whereas CI_PIPELINE_IID is:
CI_PIPELINE_ID
CI_PIPELINE_IID
The unique id of the current pipeline scoped to project
Some caveats:
@joshfriend - I'll patch this in! I'll have it return the CI_PIPELINE_IID , if it is present, or alternatively fall back to the CI_JOB_ID (which is what it does currently)
CI_JOB_ID
CI_PIPELINE_ID
is shared between all projects and will increase very rapidly if you have lots of projects and builds, whereasCI_PIPELINE_IID
is:Some caveats:
CI_PIPELINE_IID
is only available for gitlab v11.0 and higherCI_PIPELINE_ID
will be unable to just switch over because that would cause the build number to decrease.