Currently if you use the JOB_NAME variable in your build file with a regular
build, the name of the build that was specified for the project is captured. If
you use JOB_NAME in a matrix build, a 'label=XYZ' is captured which is good, but
the actual name of the project is lost. This causes an issue if you have
special builds for different branches and write the JOB_NAME variable into files
that are used at runtime. you end up with multiple different builds having the
same "label=XYZ" even if they are from separate branches.
What would be nice is if the name of the project is captured, as well as the label.
eg. "Project X_cool_branch-label=XYZ" instead of label=XYZ