Bamboo 4.2 : Checking out code

Bamboo uses the 'Source Code Checkout' task to check out repositories into the working directory on the agent.

Using this task it is possible to:

  • Check out 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 to a job at any point in the plan.)

To configure a new Source Code Checkout task:

  1. Navigate to the job that should perform the task, as described on Specifying the source repository.
  2. Click the Tasks tab, and select an existing 'Source Code Checkout' task in the tasks list, or add a new one using the Add Task button.
  3. Select the desired repository from the Repository list. If you wish to add different types of repositories, they must have been previously defined on the plan's Source Repositories tab. See Specifying the source repository for a list of supported SCMs.
  4. Specify a Checkout Directory location, which is where the contents of the selected repository will be checked out to when the task executes.
  5. Click Add Repository, at the bottom of the 'Task' screen, to add another repository to the task. 
  6. Click Save.

Screenshot: Configuring a Source Code Checkout task

Notes

Attachments: