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

JOB_NAME doesn't contain enough information in Matrix builds

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Fixed in 1.160.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Fixed in 1.160.

            People

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

              Dates

              Created:
              Updated:
              Resolved: