Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42446

Workflow Job does not call Trigger.start() when job is created

    Details

    • Similar Issues:

      Description

      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:

      You will notice that the start() method is not called.

      This behaviour is not consistent with Freestyle jobs.

        Attachments

          Issue Links

            Activity

            scoheb Scott Hebert created issue -
            scoheb Scott Hebert made changes -
            Field Original Value New Value
            Link This issue blocks JENKINS-42401 [ JENKINS-42401 ]
            jglick Jesse Glick made changes -
            Assignee Scott Hebert [ scoheb ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 41 (Web Link)" [ 15805 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-44218 [ JENKINS-44218 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-45067 [ JENKINS-45067 ]
            abayer Andrew Bayer made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]

              People

              • Assignee:
                scoheb Scott Hebert
                Reporter:
                scoheb Scott Hebert
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: