When creating a new Plan, you are given the opportunity to define multiple repository sources to use in your build. This includes specifying the source repository settings (including the repository's location), any required authentication details and other options specific to the type of repository. You can also specify the type of build strategy the Plan will use.The 'default source repository' is initially used by the Plan's 'Default Job' and can also be used by other Jobs added to this Plan. You can change the default repository in the Job by adding more repositories on the Source Repositories tab of the Plan and then changing Source Code Checkout on the Job Task tab to checkout your newly defined repository configuration.
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:
- ダッシュボードをクリックし、すべてのプラン タブをクリックします。
- 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.
- Locate the Job in the 'Plan Navigator' on the left and click the name of the Job. The Job's Summary will be displayed.
- [Actions (アクション)] > [Configure Job (ジョブを設定)] の順に選択します。
- Click the Tasks tab to display the repository settings for your Job.
- 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:
- Select an existing Source Code Checkout Task in the Task list or add a new one using the Add Task button.
- Click Add Repository at the bottom of the Task screen
- 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)
- Specify a Checkout Directory where the contents of the selected repository will be checked out to when the Task executes
- [保存] をクリックします。
Screenshot: Configuring a Job — Subversion Source Repository
checkouttask.png
注意