Polling source code in Jenkins

Posted: September 5, 2018 in Jenkins

This option will enable Jenkins to monitor GitHub repository and as soon as some changes are committed on GitHub, Jenkins will initiate project build for project.

Under project click Configure

Capture.PNG

Under Source Code Management click Git-paste Git Repo URL

 

6.PNG

 

Under Build Triggers click Poll SCM and specify time interval for checking GitHub repository for changes

2.PNG

Schedule uses crontab format

3.PNG

Click on Git Polling log to see changes

4.png

In case i changed something in code, project build will start/

5.PNG

7.PNG

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s