-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Jenkins version 2.7.1
Plugins:
ace-editor 1.1
ant 1.3
antisamy-markup-formatter 1.5
authentication-tokens 1.3
branch-api 1.10
build-timeout 1.17.1
cloudbees-folder 5.12
credentials 2.1.4
cvs 2.12
docker-commons 1.4.0
docker-workflow 1.6
durable-task 1.11
external-monitor-job 1.5
git 2.5.2
git-client 1.19.7
git-server 1.7
github 1.19.3
github-api 1.76
github-branch-source 1.8.1
github-organization-folder 1.3
google-login 1.2.1
handlebars 1.1.1
icon-shim 2.0.3
javadoc 1.4
jquery-detached 1.2.1
junit 1.15
ldap 1.12
mailer 1.17
mapdb-api 1.0.9.0
matrix-auth 1.4
matrix-project 1.7.1
maven-plugin 2.13
momentjs 1.1.1
pam-auth 1.3
pipeline-build-step 2.2
pipeline-input-step 2.0
pipeline-rest-api 1.6
pipeline-stage-step 2.1
pipeline-stage-view 1.6
plain-credentials 1.2
role-strategy 2.3.2
scm-api 1.2
script-security 1.21
simple-theme-plugin 0.3
slack 2.0.1
ssh-credentials 1.12
ssh-slaves 1.11
structs 1.2
subversion 2.6
thinBackup 1.7.4
timestamper 1.8.4
token-macro 1.12.1
translation 1.15
windows-slaves 1.1
workflow-aggregator 2.2
workflow-api 2.1
workflow-basic-steps 2.0
workflow-cps 2.9
workflow-cps-global-lib 2.1
workflow-durable-task-step 2.3
workflow-job 2.3
workflow-multibranch 2.8
workflow-scm-step 2.2
workflow-step-api 2.2
workflow-support 2.2
Environment:
java.runtime.name OpenJDK Runtime Environment
java.runtime.version 1.7.0_101-b00Jenkins version 2.7.1 Plugins: ace-editor 1.1 ant 1.3 antisamy-markup-formatter 1.5 authentication-tokens 1.3 branch-api 1.10 build-timeout 1.17.1 cloudbees-folder 5.12 credentials 2.1.4 cvs 2.12 docker-commons 1.4.0 docker-workflow 1.6 durable-task 1.11 external-monitor-job 1.5 git 2.5.2 git-client 1.19.7 git-server 1.7 github 1.19.3 github-api 1.76 github-branch-source 1.8.1 github-organization-folder 1.3 google-login 1.2.1 handlebars 1.1.1 icon-shim 2.0.3 javadoc 1.4 jquery-detached 1.2.1 junit 1.15 ldap 1.12 mailer 1.17 mapdb-api 1.0.9.0 matrix-auth 1.4 matrix-project 1.7.1 maven-plugin 2.13 momentjs 1.1.1 pam-auth 1.3 pipeline-build-step 2.2 pipeline-input-step 2.0 pipeline-rest-api 1.6 pipeline-stage-step 2.1 pipeline-stage-view 1.6 plain-credentials 1.2 role-strategy 2.3.2 scm-api 1.2 script-security 1.21 simple-theme-plugin 0.3 slack 2.0.1 ssh-credentials 1.12 ssh-slaves 1.11 structs 1.2 subversion 2.6 thinBackup 1.7.4 timestamper 1.8.4 token-macro 1.12.1 translation 1.15 windows-slaves 1.1 workflow-aggregator 2.2 workflow-api 2.1 workflow-basic-steps 2.0 workflow-cps 2.9 workflow-cps-global-lib 2.1 workflow-durable-task-step 2.3 workflow-job 2.3 workflow-multibranch 2.8 workflow-scm-step 2.2 workflow-step-api 2.2 workflow-support 2.2 Environment: java.runtime.name OpenJDK Runtime Environment java.runtime.version 1.7.0_101-b00
docker withRun does not create separate containers when run within a parallel block. The output of the first step is shown in all steps.
In the following example, "make frontend" fails and its output is repeated in the shell steps of both frontend and backend steps.
node { def runCmd = { cmd -> docker.image("ubuntu:latest").withRun("-t -v /home/mn:/src/mn") { c -> sh "docker exec ${c.id} ${cmd}" } } stage 'Build' runCmd 'npm install' parallel ( "frontend": { runCmd "make frontend" }, "backend": { runCmd "make backend" } ) }
- duplicates
-
JENKINS-38268 Parallel step and closure scope
- Resolved