After upgrading my Sid virtual machine hosting my Jenkins, build after git push stopped working. This is because version 1.503 and above require an auth token for triggering the build. Since it took me some time to search the
web, I’ve decided to blog about it to save time to other Jenkins users.
Under each project configuration screen, in the “Build Triggers” section, tick the “Trigger builds remotely (e.g., from scripts)” option. Then enter a random token (I used a password generator for it). Then in your post-receive
hook, use what’s below:
wget -q --no-check-certificate https://<jenkins-url>/job/heat/build?token=<your-token>
原文http://www.tuicool.com/articles/rIz6R3
原文http://www.tuicool.com/articles/rIz6R3