-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
-
Jenkins 2.293
docker plugin: 1.2.0
In docker plugin parallel situation, the x didn't get correct output in docker.image.inside, and always get the last element in the array,
In my example, the output: 2 2 While expect output: 1 2. Here is the codes:
node { x_array = [1,2] x_map = [:] image = "centos:latest" for (x in x_array) { x_map[x] = { image = docker.image(image) image.pull image.inside("-t") { sh "echo $x" } } } parallel x_map }