Details
-
Type:
Bug
-
Status: In Progress (View Workflow)
-
Priority:
Minor
-
Resolution: Unresolved
-
Component/s: workflow-cps-plugin
-
Labels:
-
Environment:redhat linux, jenkins 2.34, Pipeline 2.5
-
Similar Issues:
-
Epic Link:
Description
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.
Try running inside @NonCPS.