You can configure Jenkins to access the sources you store in a source control system, of which there are many types. The simplest
way to do this is to use a file system watcher which triggers an action when a change occurs in the source control repository.
To enable Jenkins to access the source control, install a required plugin:
- In the Jenkins Home page, click
Manage Jenkins > Manage Plugins, and then click the
Available tab.
- Locate
File system SCM, and then install the required plugin by enabling the check box and clicking
Install.
- Restart Jenkins (you can select
Ctrl+C in the command window that is running Jenkins and then start Jenkins again).
The following example shows how to configure your project to access the sources from Subversion:
- Navigate to the project's configuration area.
- Under
Source Code Management, click
Subversion.
- In the
Repository URL area, specify the URL path of the source control that you want to work with.
- Specify the credentials and a local check-out directory as required.
- Click
Apply to save the configuration.
You have now created a source configuration for your project, but you also need to change the
Build Triggers section to tell Jenkins to monitor that location.