[JIRA] (JENKINS-17587) Slave label expressions with multiple quoted slave names joined by logical operators are no longer recognised

228 views
Skip to first unread message

keijohns@epic.com (JIRA)

unread,
May 8, 2019, 4:01:03 PM5/8/19
to jenkinsc...@googlegroups.com
Keith Johnson commented on Bug JENKINS-17587
 
Re: Slave label expressions with multiple quoted slave names joined by logical operators are no longer recognised

This is still an issue as of Jenkins 2.138.4.

With a minimal Jenkinsfile and an executor with labels 'a' and 'b':

{{node('"a" || "b"') { }}}

Output:
[Pipeline] node
Still waiting to schedule task
There are no nodes with the label ‘a" || "b’

So it appears the entire label expression is being 'unquoted', but it's really two separate pairs of quotes:

"a" || "b"  --> a" || "b

An easy workaround is to just add parentheses around the whole label expression:

{{node('("a" || "b")') { }}}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

keijohns@epic.com (JIRA)

unread,
May 8, 2019, 4:03:03 PM5/8/19
to jenkinsc...@googlegroups.com
Keith Johnson edited a comment on Bug JENKINS-17587

keijohns@epic.com (JIRA)

unread,
May 8, 2019, 4:03:03 PM5/8/19
to jenkinsc...@googlegroups.com

keijohns@epic.com (JIRA)

unread,
May 8, 2019, 4:03:04 PM5/8/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages