-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: groovy-plugin, pipeline
-
None
-
Environment:Jenkins ver. 2.164.1
Problem code:
script {
TEST_STRING="oen/two/three"
TEST_LIST=TEST_STRING.split("/")
echo "$TEST_LIST"
TEST_LIST=TEST_LIST.plus(0,"one")
echo "$TEST_LIST"
}
Expected output:
[Pipeline] echo 08:58:07 [oen, two, three] [Pipeline] echo 08:58:07 [one, two, three]
Current output:
[Pipeline] echo 08:58:07 [oen, two, three] [Pipeline] echo 08:58:07 [oen, two, three, 0, one]