-
Bug
-
Resolution: Unresolved
-
Minor
-
Jenkins 2.42
Pipeline 2.4
workflow-cps 2.24
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 }