Using Sources from Source Control

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:

  1. In the Jenkins Home page, click Manage Jenkins > Manage Plugins, and then click the Available tab.
  2. Locate File system SCM, and then install the required plugin by enabling the check box and clicking Install.
  3. 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:

  1. Navigate to the project's configuration area.
  2. Under Source Code Management, click Subversion.
  3. In the Repository URL area, specify the URL path of the source control that you want to work with.
  4. Specify the credentials and a local check-out directory as required.
  5. 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.