switch statement default case not called if other match found in Pipeline DSL

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

XMLWordPrintable

      The simplest of scripts to reproduce the issue:

      switch ("triggervalue") {
          case "triggervalue":
              echo "triggervalue match"
          default:
              echo "Sorry, this does not print..."
      }
      

      When no other case is triggered, then the default does seem to work.

       

            Assignee:
            Unassigned
            Reporter:
            bwijsmuller
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: