CI: Expand variables with values in only/except:variables strings and regexps. Example: $CI_COMMIT_MESSAGE =~ /Skip $CI_JOB_NAME/i
In general, if there's any variable syntax between "these"
or /these/
, it should be expanded before evaluation to true/false. Example:
this-job-name-123:
except:
variables:
- $CI_COMMIT_MESSAGE =~ /Skip $CI_JOB_NAME/i
script:
- echo The job runs unless the commit message contains "Skip this-job-name-123"
Expanding $CI_COMMIT_MESSAGE =~ /Skip $CI_JOB_NAME/i
to $CI_COMMIT_MESSAGE =~ /Skip this-job-name-123/i
before evaluation would be HUGE.
CC @markglenfletcher @markpundsack @jlenny @ayufan @grzesiek
~"feature proposal" ~"CI/CD"
~"Accepting Merge Requests"?
Edited by Damian Nowak