Sunday, December 28, 2014

Jenkins build triggered by Git push

To build by Git push in Jenkins,

you can set a project configuration as follows:

Configure -> Build Triggers -> Poll SCM -> Schedule -> H/5 * * * *

Now Jenkins will poll the repository for checking any change every 5 minutes.

You can check the polling log at 'Git Polling Log' menu.

As you can see, it's not really event-based but polling-based.

I haven't tried event-based approach yet.

No comments:

Post a Comment