You can only use variables to specify the dependency job if you also
specify the project and ref. I couldn't find a built-in variable that
evaluated to the current ref or particularly clear documentation of what
ref even meant in this context (GitLab uses it for a few different
things in CI as far as I can tell).
This is a combination of 2 commits.
This is the 1st commit message:
Project permits variables in job names?
This is the commit message #2:
Using a variable is getting too hard, just copy and paste some stuff
pick cf1c4dfa73 Project permits variables in job names?
squash e5e888ac77 Using a variable is getting too hard, just copy and paste some stuff