-
Bug
-
Resolution: Fixed
-
Major
-
None
-
redhat (master/slave)
jenkins ver=1.448
I have master/slave setup, and my project has the ability to execute builds in parallel, i.e. I have 'Execute concurrent builds if necessary' option turned on.
But when I'm trying to inject any environment variables into my job ( 'Inject environment variables to the build process' option ), then the $WORKSPACE variable is NOT defined properly for parallel builds.
They should be
${JENKINS_HOME/workspace/${JOB_NAME}
${JENKINS_HOME/workspace/${JOB_NAME}@2
${JENKINS_HOME/workspace/${JOB_NAME}@3
...
But $WORKSPACE always points to
${JENKINS_HOME/workspace/${JOB_NAME}
for all job runs.
- is related to
-
JENKINS-12841 EnvInject Plugin 1.26 does not substitute ${WORKSPACE} correctly
-
- Resolved
-
[JENKINS-12704] WORKSPACE variable for concurrent builds are not defined properly.
Assignee | Original: Kohsuke Kawaguchi [ kohsuke ] | New: Gregory Boissinot [ gbois ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Component/s | New: core [ 15593 ] | |
Component/s | Original: concurrent-build [ 15628 ] |
Link |
New:
This issue is related to |
Workflow | Original: JNJira [ 143161 ] | New: JNJira + In-Review [ 190417 ] |
Code changed in jenkins
User: Gregory Boissinot
Path:
src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java
http://jenkins-ci.org/commit/envinject-plugin/15363ba6de7e9593ff6bd9822da843ad335e8069
Log:
Fix
JENKINS-12704