envalentine
envalentine

Reputation: 531

Pipeline project in Jenkins don't trigger a build after check out in SCM(Git Hub)

  1. I got a situation when creating a new Pipeline project:

enter image description here

  1. I ticked the: GitHub hook trigger for GITScm polling: image1 image2

With FreeStyle, GitHub Organization project everything is working fine, I can trigger a build WHEN pushing to GitHub, but with Pipeline not.

Maybe I missed something? Thanks for your time!

Upvotes: 2

Views: 876

Answers (1)

Marcos
Marcos

Reputation: 575

Disable Lightweight checkout. From the help button next to it:

If selected, try to obtain the Pipeline script contents directly from the SCM without performing a full checkout. The advantage of this mode is its efficiency; however, you will not get any changelogs or polling based on the SCM. (If you use checkout scm during the build, this will populate the changelog and initialize polling.) Also build parameters will not be substituted into SCM configuration in this mode. Only selected SCM plugins support this mode.

You might need to run the pipeline one more time after disabling it and then it should start picking up the hooks.

Upvotes: 3

Related Questions