According to https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables JOB_NAME should only be the project name, but it actually includes parameters, e.g. job_name/parameter1=value2,parameter2=value2

      Workaround:

      JOB_NAME=$(echo $JOB_NAME | cut -d '/' -f 1)
      

          [JENKINS-39189] JOB_NAME includes parameters

          Xian Yi Teng created issue -
          Xian Yi Teng made changes -
          Description Original: According to https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables JOB_NAME should only be the project name, but it actually includes parameters, e.g. job_name/parameter1=value2,parameter2=value2 New: According to https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project#Buildingasoftwareproject-JenkinsSetEnvironmentVariables JOB_NAME should only be the project name, but it actually includes parameters, e.g. job_name/parameter1=value2,parameter2=value2

          Workaround:
          {code}
          JOB_NAME=$(echo $JOB_NAME | cut -d '/' -f 1)
          {code}
          Dhiraj Jain made changes -
          Priority Original: Minor [ 4 ] New: Blocker [ 1 ]
          Xian Yi Teng made changes -
          Attachment New: config.xml [ 34494 ]
          Xian Yi Teng made changes -
          Comment [ Job config attached. [^config.xml]

          {code}
          Jenkins ver. 1.642.4
          {code}
          {code}
          Started by upstream project "XIAN_TENG_TEST_JOB" build number 1
          originally caused by:
           Started by user xian.teng
          [EnvInject] - Loading node environment variables.
          Building remotely on ubuntu-1204-03-64 (qa_runner admin_linux build_docs 12.04 amd64-Ubuntu Ubuntu amd64-Ubuntu-12.04 Ubuntu-12.04 amd64) in workspace /jenkins_data/jenkins/workspace/XIAN_TENG_TEST_JOB/parameter1_axis/value1/parameter2_axis/value2
          [value2] $ /bin/sh -xe /tmp/hudson5641186992722460038.sh
          + echo build step
          build step
          + echo value1
          value1
          + echo value2
          value2
          + echo XIAN_TENG_TEST_JOB/parameter1_axis=value1,parameter2_axis=value2
          XIAN_TENG_TEST_JOB/parameter1_axis=value1,parameter2_axis=value2
          Finished: SUCCESS
          {code} ]
          Oleg Nenashev made changes -
          Component/s New: matrix-project-plugin [ 18765 ]
          Component/s Original: core [ 15593 ]
          Oleg Nenashev made changes -
          Link New: This issue duplicates JENKINS-28176 [ JENKINS-28176 ]
          Oleg Nenashev made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            xytxytxyt Xian Yi Teng
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: