简体   繁体   中英

Jenkins not triggering pipeline build on successful github webhook

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 140.82.115.243 ⇒ 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:

在此处输入图像描述

And the pipeline is setup as: 在此处输入图像描述

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM