Why an each loop in a Jenkinsfile stops at first iteration

前端 未结 4 714
终归单人心
终归单人心 2021-02-04 04:34

Here is the content of my Jenkinsfile :

node {
    // prints only the first element \'a\'
    [ \'a\', \'b\', \'c\' ].each {
        echo it
    }
}         


        
4条回答
  •  独厮守ぢ
    2021-02-04 05:02

    Thanks to @batmat on #jenkins IRC channel for answering this question!

    It's actually a known bug : JENKINS-26481.

提交回复
热议问题