[JIRA] (JENKINS-57443) .plus() method works incorrect

4 views
Skip to first unread message

rostergek@gmail.com (JIRA)

unread,
May 14, 2019, 2:11:02 AM5/14/19
to jenkinsc...@googlegroups.com
gek created an issue
 
Jenkins / Bug JENKINS-57443
.plus() method works incorrect
Issue Type: Bug Bug
Assignee: vjuranek
Components: groovy-plugin, pipeline
Created: 2019-05-14 06:10
Environment:  Jenkins ver. 2.164.1
Priority: Minor Minor
Reporter: gek

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]
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

rostergek@gmail.com (JIRA)

unread,
Jul 18, 2019, 9:42:02 AM7/18/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages