-
Bug
-
Resolution: Fixed
-
Minor
-
Jenkins version: 2.89.1
It is installed via this docker image:
https://github.com/jenkinsci/docker.git
The docker host runs Debian 8.9
Consider the following pipeline script.
jenkinsfile
def str1 = ''
def str2 = ''
(str1, str2) = addStage()
def addStage()
{
stage('Stage 1')
{
node('master')
{
sh 'echo run stage'
}
}
return ['foo', 'bar']
}
When running the pipeline it will execute the shell command twice. This came unexpected to me and I think it is a bug. When the parameter unpacking is removed from the third line, the script behaves as expected.
- links to