-
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
-
Please, where are you writing $JOB_NAME value? What job configuration option?