-
Bug
-
Resolution: Unresolved
-
Major
-
None
The following pipeline outputs 1 2 3 true, the expected output is 1 2 3 [2,3],
pipeline {
stages {
stage('Testing groovy closures') {
steps {
script {
[1, 2, 3].each { println(it) }
def a = [1, 2, 3].dropWhile { it != 2 }
println(a)
}
}
}
}
}
Running Pipeline Groovy Plugin 2.60