The instructions on this page describe how to configure a Perforce source repository for either a Plan or a Job.

On this page:

Configuring a Perforce Source Repository

The instructions in this section apply to configuring a source repository for both Plans and Jobs.

To configure a Perforce repository:
(info) If you are creating a new Plan or new Job, or have come from the Editing a Plan or Editing a Job topics, start at step 4.

  1. Navigate to the source repository settings for a Plan or Job, as described on Specifying the Source Repository for a Plan and Specifying the Source Repository for a Job respectively.
  2. Perforce Configuration


Screenshot above: Source Repository — Perforce

Appendix - Build Strategies

Notes

  1. You will not be able to create Plans/Jobs that use a Perforce repository without specifying the shared local Perforce capability first. Read more about configuring a Perforce capability.
  2. Keep your Perforce configuration up to date — If you are using Perforce as your repository, you must ensure your Perforce configuration in Bamboo is in sync with any changes to your Perforce repository (such as client, depot or user credential changes). If not, your Perforce repository changes may cause unexpected behaviour in Bamboo when Bamboo tries to access the repository. See the notes in the configuration instructions below for further details.
  3. Issue when running Bamboo with Perforce prior to Bamboo 2.0.7 — A known issue exists when running Bamboo with Perforce prior to Bamboo 2.0.7 (See BAM-2866 and BAM-2849). If you change the name of your Perforce client (i.e. via an update) without updating your Perforce configuration in Bamboo, Bamboo will not be able to find the Perforce client to run against. Perforce will then create a default client in your running directory. This can lead to situations where Bamboo will attempt to clear out data from your running directory (e.g. force build). To avoid this problem, ensure that you update the 'Client' in your Perforce configuration whenever you change your Perforce client.
  4. Please be aware of the following implications when either letting Bamboo manage or preventing Bamboo from managing your workspace:
Related Topics

Specifying the Source Repository for a Plan
Specifying the Source Repository for a Job