Skip to content

Add note about how to use or escape variables inside other variables

username-removed-148720 requested to merge TeNNoX/gitlab-ee:patch-16 into master

Note: This is the counterpart for gitlab-org/gitlab-ce!9601

What does this MR do?

I added a note about how to use variables inside other variables, and - more importantly - how to escape them.

Why was this MR needed?

I had the pleasure to spend hours trying to hunt a bug that was caused by this behaviour. And there are also others who are/were confused - After some research I found two issues related to this: gitlab-org/gitlab-ee#1068 and gitlab-org/gitlab-ci-multi-runner#1267. The later ones even has comments expressing the wish for this.

Checklist

  • If working on CE, submit an MR to EE with the changes as well. (gitlab-org/gitlab-ce!9601)

Merge request reports