-
Bug
-
Resolution: Duplicate
-
Blocker
-
None
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)
- duplicates
-
JENKINS-28176 the bare/basic JOB_NAME is not available in matrix builds
-
- Open
-
[JENKINS-39189] JOB_NAME includes parameters
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} |
Priority | Original: Minor [ 4 ] | New: Blocker [ 1 ] |
Attachment | New: config.xml [ 34494 ] |
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} ] |
Component/s | New: matrix-project-plugin [ 18765 ] | |
Component/s | Original: core [ 15593 ] |
Link | New: This issue duplicates JENKINS-28176 [ JENKINS-28176 ] |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |