[JIRA] (JENKINS-41422) Assignment in if statements does not work
Title: Message Title Andrew Bayer updated an issue Jenkins / JENKINS-41422 Assignment in if statements does not work Change By: Andrew Bayer Labels: complex-cps-code pipeline triaged-2018-11 Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-41422) Assignment in if statements does not work
Title: Message Title Andrew Bayer updated an issue Jenkins / JENKINS-41422 Assignment in if statements does not work Change By: Andrew Bayer Component/s: workflow-cps-plugin Component/s: pipeline Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-41422) Assignment in if statements does not work
Title: Message Title Zhelyan Panchev created an issue Jenkins / JENKINS-41422 Assignment in if statements does not work Issue Type: Bug Assignee: Unassigned Components: pipeline Created: 2017/Jan/25 12:23 PM Environment: Jenkins 2.42 Pipeline 2.4 workflow-cps 2.24 Labels: pipeline Priority: Minor Reporter: Zhelyan Panchev The following fails in pipeline scripts (the if statement always evaluates to false) def getStatus(){ // "Ready" } // def acceptedStatuses = ["Ready", "Updated", "Failed" ] def status if(acceptedStatuses.contains((status = getStatus({ // never called }