You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[JENKINS-1047] JOB_NAME doesn't contain enough information in Matrix builds #315
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
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
Activity
jenkins-infra-bot commentedon Nov 29, 2007
Raw content of original comment:
Fixed in 1.160.