Related to: https://issues.jenkins-ci.org/browse/JENKINS-57014
GitHub Conversation: https://github.com/jenkinsci/github-branch-source-plugin/pull/216
When GitHub publishes an event for a Deployment, the revision in the event payload is the same as the revision in the push event payload. Thus, the below line of code will not execute a pipeline upon receiving the deployment webhook. We would like the ability to optionally toggle on/off handling SCMEvents in an idempotent manner.
https://github.com/jenkinsci/branch-api-plugin/blob/master/src/main/java/jenkins/branch/MultiBranchProject.java#L1546