Published September 09, 2018 by

Pull Source Code from Code Repository in Jenkins

In this tutorial, we learn How to Pull Source Code from the Code Repository in Jenkins Job. This option will enable Jenkins to monitor code repository and as soon as some changes are committed on the repository, Jenkins will initiate project build for the project.

Under project click Configure

Under Source Code Management choose your Code Repository and paste Repository URL.

Under Build Triggers tick on Poll SCM and specify a time interval for checking the repository for changes if you want else skip it. (this step is optional)

Click on Save.

Crontab format

Click Build Now

See job log in console output.