Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-1047

JOB_NAME doesn't contain enough information in Matrix builds

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • matrix-project-plugin
    • None
    • Platform: All, OS: All

      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

            Unassigned Unassigned
            kundertk kundertk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: