This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      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
      }
      
      
      

            Assignee:
            Unassigned
            Reporter:
            Zhelyan Panchev
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: