jenkinsci / multibranch-action-triggers-plugin

MultiBranch Actions Trigger Plugin
https://plugins.jenkins.io/multibranch-action-triggers/
MIT License
32 stars 7 forks source link

Branch deletion on a multibranch pipeline is not triggering Pipeline Delete Event #25

Closed NickLavrov closed 2 years ago

NickLavrov commented 2 years ago

Describe the bug I have github webhook configured for branch deletion events and a multibranch pipeline job configured for the git repo. I have a jenkins job that just says "Hello world" and I set it under "Pipeline Delete Event" for the multibranch pipeline job. When I delete the branch, indeed the multibranch pipeline job shows the branch name crossed out. However, the "Hello world" job is not triggered. Even if I manually delete the job after the branch is deleted, the job is not triggered. I also note the same problem for "Pipeline Create Event." I set the same job trigger and it doesn't get triggered upon pipeline creation.

To Reproduce Steps to reproduce the behavior:

  1. Create a simple Hello World pipeline.
  2. On multibranch pipeline, add that job under "Pipeline Delete Event"
  3. Ensure github webhook sends delete hooks
  4. Delete the branch, note that it gets crossed out, but the Hello world job is not trigger

Expected behavior The job should trigger on branch deletion.

Jenkins version 2.356

NickLavrov commented 2 years ago

"Include Filters" section default is null. This means by default it doesn't run on any branche. Once I set it to * (or some other value) it worked!