Hi. I have already configured the pipeline stages. But triggering the pipeline using GitHub webhook plug-in, both pull requests and merge actions triggered the pipeline twice. I only want the Jenkins pipeline to be triggered on merging the pull request using the generic webhook plugin.
Can someone guide me to achieve this goal?
In GitHub go to your webhook and for Trigger Events
Check Pushes
. Everything else should be unchecked. A merged pull request is essentially a push to the target branch.
1 Like