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

BUILD_TAG environment variable is incorrect in matrix builds

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • matrix-project-plugin
    • None
    • Platform: Other, OS: All

      Matrix BUILD_TAG doesn't mention JOB_NAME.
      Also, git tagging doesn't look like BUILD_NAME or BUILD_TAG (git tag looks like "hudson-test_matrix-3")

      both of these are generated by env|sort and then had non-essential information removed. If you think there are some fields missing I can re-add them.

      Simple build named 'test':

      BUILD_ID=2009-03-27_16-32-56
      BUILD_NUMBER=3
      BUILD_TAG=hudson-test-3
      EXECUTOR_NUMBER=0
      HUDSON_HOME=/home/hudson
      HUDSON_URL=http://hudson:8081/
      JOB_NAME=test
      WORKSPACE=/home/hudson/jobs/test/workspace
      

      Matrix build named 'test_matrix', with parameter FOO=bar (or FOO=zyzzyx, not shown), and label=path_11

      BUILD_ID=2009-03-27_15-09-32
      BUILD_NUMBER=3
      BUILD_TAG=hudson-FOO=bar,label=path_11-3
      EXECUTOR_NUMBER=0
      FOO=bar
      HOME=/usr/hudson
      HUDSON_URL=http://hudson:8081/
      JOB_NAME=test_matrix/FOO=bar,label=path_11
      LOGNAME=hudson
      WORKSPACE=/usr/hudson/workspace/test_matrix/FOO/bar/label/path_11
      label=path_11
      

      note BUILD_TAG in test_matrix doesn't include teh string test_matrix, but BUILD_TAG in test DOES include the name fo the job.

          [JENKINS-3376] BUILD_TAG environment variable is incorrect in matrix builds

          jlongman created issue -

          jlongman added a comment -

          This is on hudson version 1.293.

          jlongman added a comment - This is on hudson version 1.293.

          mdonohue added a comment -

          Fix summary typo

          mdonohue added a comment - Fix summary typo

          mdonohue added a comment -

          This seems to be all about the BUILD_TAG environment variable in multi-config
          project - adjusting summary and subcomponent to reflect that.

          mdonohue added a comment - This seems to be all about the BUILD_TAG environment variable in multi-config project - adjusting summary and subcomponent to reflect that.
          jlongman made changes -
          Description Original: Matrix BUILD_TAG doesn't mention JOB_NAME.
          Also, git tagging doesn't look like BUILD_NAME or BUILD_TAG (git tag looks like
          "hudson-test_matrix-3")

          both of these are generated by env|sort and then had non-essential information
          removed. If you
          think there are some fields missing I can re-add them.

          Simple build named 'test':
          BUILD_ID=2009-03-27_16-32-56
          BUILD_NUMBER=3
          BUILD_TAG=hudson-test-3
          EXECUTOR_NUMBER=0
          HUDSON_HOME=/home/hudson
          HUDSON_URL=http://hudson:8081/
          JOB_NAME=test
          WORKSPACE=/home/hudson/jobs/test/workspace


          Matrix build named 'test_matrix', with parameter FOO=bar (or FOO=zyzzyx, not
          shown), and label=path_11
          BUILD_ID=2009-03-27_15-09-32
          BUILD_NUMBER=3
          BUILD_TAG=hudson-FOO=bar,label=path_11-3
          EXECUTOR_NUMBER=0
          FOO=bar
          HOME=/usr/hudson
          HUDSON_URL=http://hudson:8081/
          JOB_NAME=test_matrix/FOO=bar,label=path_11
          LOGNAME=hudson
          WORKSPACE=/usr/hudson/workspace/test_matrix/FOO/bar/label/path_11
          label=path_11

          note BUILD_TAG in test_matrix doesn't include teh string test_matrix, but
          BUILD_TAG in test DOES include the name fo the job.
          New: Matrix BUILD_TAG doesn't mention JOB_NAME.
          Also, git tagging doesn't look like BUILD_NAME or BUILD_TAG (git tag looks like "hudson-test_matrix-3")

          both of these are generated by env|sort and then had non-essential information removed. If you think there are some fields missing I can re-add them.

          Simple build named 'test':
          {noformat}
          BUILD_ID=2009-03-27_16-32-56
          BUILD_NUMBER=3
          BUILD_TAG=hudson-test-3
          EXECUTOR_NUMBER=0
          HUDSON_HOME=/home/hudson
          HUDSON_URL=http://hudson:8081/
          JOB_NAME=test
          WORKSPACE=/home/hudson/jobs/test/workspace
          {noformat}

          Matrix build named 'test_matrix', with parameter FOO=bar (or FOO=zyzzyx, not shown), and label=path_11
          {noformat}
          BUILD_ID=2009-03-27_15-09-32
          BUILD_NUMBER=3
          BUILD_TAG=hudson-FOO=bar,label=path_11-3
          EXECUTOR_NUMBER=0
          FOO=bar
          HOME=/usr/hudson
          HUDSON_URL=http://hudson:8081/
          JOB_NAME=test_matrix/FOO=bar,label=path_11
          LOGNAME=hudson
          WORKSPACE=/usr/hudson/workspace/test_matrix/FOO/bar/label/path_11
          label=path_11
          {noformat}
          note BUILD_TAG in test_matrix doesn't include teh string test_matrix, but BUILD_TAG in test DOES include the name fo the job.
          Jenkins IRC Bot made changes -
          Component/s New: matrix-project [ 18765 ]
          Component/s Original: matrix [ 15501 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 133449 ] New: JNJira + In-Review [ 174029 ]

            Unassigned Unassigned
            jlongman jlongman
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: