Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: workflow-cps-plugin
-
Labels:None
-
Similar Issues:
-
Released As:workflow-cps 2.63, workflow-api 2.36, workflow-job 2.34
Description
Classes implementing org.jenkinsci.plugins.workflow.flow.GraphListener are not informed about FlowStartNode s at execution start.
All other types of FlowNode are handled.
(Including the matching FlowEndNode)
Devin Nusbaum so the easy way would be to just fire the listeners before the execution
This however would break the behaviour of the `FlowExecution.onRunning()` method which is documented to receive an already started listener.
(The testsuite however passes)
We could also introduce a new method `FlowExecution.beforeRunning()` (or `onCreated()`) that fires before the flow is actually started.
WDYT?