Issue
I have setup Jenkins and integrated with Github, and I am able to trigger builds on "Freestyle Projects" from a github webhook, however I have been unsuccessful in triggering one using the "Pipeline project".
In the logs (/log/all), I can see that my Jenkins instance is receiving the PushEvent from Github:
Aug 17, 2020 8:29:43 PM INFO org.jenkinsci.plugins.github.webhook.subscriber.DefaultPushGHEventSubscriber onEvent
Received PushEvent for https://github.com/xxx/xxx from xxx.xxx.xxx.xxx ⇒ https://xip.io:9090/github-webhook/
However it does not "Poke" the project like the "Freestyle" project does. I have checked the Githook hook trigger for the project:
After setting it all up, I triggered a manual job which completed successfully, afterwards I comitted and pushed new code to Master, saw the webhook triggering in Github and in the Jenkins Log.
Am I missing a unique step for the Pipeline build?
Running Jenkins v 2.235.4
Solution
I checked off the "Lightweight Checkout" in the last section of the Pipeline, ran a manual build which fixed the issue. Builds are now triggered from Github webhook.
I did not have to setup Github Credentials in the Github Plugin to make this work.
Answered By - user1725266
Answer Checked By - Dawn Plyler (JavaFixing Volunteer)