When a Trigger that extends Trigger<Job> is added to a job as it is being created, the start() method is not called.
There is a test called PipelineTriggersJobPropertyTest#triggerPresentDuringStart which shows that start() is called. But in practice...in a non-test environment, it is not called.
I created a simple MockTrigger that shows this.
How to reproduce:
- build and install plugin from https://github.com/scoheb/mock-trigger
- install workflow-job plugin
- create a pipeline job with a MockTrigger
- save the job
You will notice that the start() method is not called.
This behaviour is not consistent with Freestyle jobs.
|Assignee||Scott Hebert [ scoheb ]|
|Remote Link||This issue links to "PR 41 (Web Link)" [ 15805 ]|
|Status||Open [ 1 ]||In Progress [ 3 ]|
|Status||In Progress [ 3 ]||In Review [ 10005 ]|
|Resolution||Fixed [ 1 ]|
|Status||In Review [ 10005 ]||Resolved [ 5 ]|