SeemaC
SeemaC

Reputation: 5

github webhook triggers jenkins job only on merge request

We have github webhook with events pull request and push checked . Using this to trigger jenkins job(pipeline job) for pull request open and update , however its not working as expected. Only merge request to main branch triggers Jenkins job .

webhook event check

I need to run jenkins pipeline job for every pull request in github repository and the jenkins plugin -github pull request builder

this plugin have errors and its configuration in jenkins not working with secret text.

Expected - trigger jenmins job when github Pull request opened, updated and get the status of jenkins job as github check to pull request.

Please do suggest me any alternative?

Upvotes: 0

Views: 117

Answers (1)

MatCat
MatCat

Reputation: 77

Webhooks only trigger when a change of state occurs. If you have existing pull requests when you create the webhook, nothing will trigger until the state changes, such as when a merge occurs. If you create a new pull request after you set up the webhook, it should trigger.

Upvotes: 0

Related Questions