Git – Jenkins Pipeline job isn’t triggered on GitHub push

gitgithubJenkinsjenkins-pipelinewebhooks

I've created Jenkins Pipline job and want it to be triggered on my GitHub repo push event.

I've added repo url to job config and checked "trigger on push option":
enter image description here

I've also added GitHub token with needed rights to jenkins configure Github section: enter image description here

In Github repo I've enabled webhook for my Jenkins server:
enter image description here

And after all steps still nothing is triggered after push to my GitHub repo.

Does anyone have any idea what's going on and why Jenkins doesn't trigger configured pipeline job?

Best Answer

Solution mentioned by OP in a comment is correct.

Assuming you have a Github webhook for your Jenkins set up correctly and accessible (can be verified in the Github UI), you need to start the build manually once. Upon completion of the build, changes in the repository will automatically start new builds.


A note from user8888:

You actually need to manually start the build and the build must be successful. A failed build won't do anything.

Related Topic