Bamboo 3.4 : Specifying the Source Repository for a Job

As part of configuring a plan, you can specify the 'default' source repository to use in your builds.

The 'default' source repository is used by the plan's 'Default Job' and can be used by other jobs added to this plan.

  • You can change the repository that is used in a particular job of the plan. Just add more repositories on the Source Repositories tab of the Plan and then change Source Code Checkout on the Job Task tab to checkout your newly defined repository.
  • You can specify shared source repositories. These repositories are available to all plans on the server.

For details, please refer to the following pages (see Notes below):

Navigating to the Source Repository Settings for a Job

To navigate to the source repository settings for a Job:

  1. Click Dashboard and then the All Plans tab.
  2. Locate the Plan in the list which contains the Job you wish to configure and click the Plan's name. The Plan's 'Plan Summary' page will be displayed.
  3. Locate the Job in the 'Plan Navigator' on the left and click the name of the Job. The Job's Summary will be displayed.
  4. Choose Actions > Configure Job.
  5. Click the Tasks tab to display the repository settings for your Job.
  6. Locate the Source Code Checkout task. (Note that this may not be present in your Job configuration if it has been explicitly removed by the user.)

Configuring the Source Code Checkout Task

Bamboo uses the Source Code Checkout Task to checkout repositories into the working directory on the agent.

Using this Task it is possible to:

  • Checkout multiple repositories to a custom directory path in the working directory
  • Specify multiple checkouts that occur at different stages of the build (This can be achieved by simply adding another Source Code Checkout Task after any number of regular build steps)

To add a new checkout:

  1. Select an existing Source Code Checkout Task in the Task list or add a new one using the Add Task button.
  2. Click Add Repository at the bottom of the Task screen
  3. Select the desired Repository from the Repository list (If you wish to add more repositories to this list, they must be defined on the Plan's Source Repositories configuration)
  4. Specify a Checkout Directory where the contents of the selected repository will be checked out to when the Task executes
  5. Click Save

Screenshot: Configuring a Job — Subversion Source Repository

Notes

Attachments: