This page describes how to configure Bamboo to use a Subversion repository.
You can specify repositories at the following levels in Bamboo:
- global – repositories are available to all plans in Bamboo.
- plan – repositories are available to all jobs in the Bamboo plan.
- job – repositories are available to all tasks in the Bamboo job.
The recommended approach is to set up linked source repositories at the global level – see Linking to source code repositories.
Configure a Subversion source repository
- Navigate to the repository configuration for a linked repository, plan or job. See Linking to source code repositories.
- Either click Add Repository to add a new repository, or edit an existing repository configuration.
- Choose Subversion from the Source Repository list.
- Enter a Display Name to help identify the repository in Bamboo.
- You can configure the following settings for a Subversion source repository for your plan:
The location of your Subversion repository e.g.http://svn.collab.net/repos/svn/trunk Note that you can use global variables in this field (see Using Global or Build-specific Variables).
If you are importing a Maven 2 Project, this location should contain your project's
|ユーザ名||(Optional) The Subversion username (if any) required to access the repository.|
|認証タイプ||Password – choose this option if you want to authenticate with a username and password.|
|SSH – if you choose to authenticate using SSH, you need to provide the following details:|
If you are planning to use remote agents the ssh private key file has to be copied to the agent box into the same location as specified.
|SSL Client Certificate – if you choose to authenticate using an SSL Client Certificate, you need to provide the following details:|
Please note, the client certificate has to be in PKCS12 format and the client certificate file must be passphrase protected, otherwise a runtime exception is thrown by the JDK security engine while opening the user key.
|Detect Changes in Externals|
Select this if your Subversion repository uses svn:externals to link to other repositories (your externals must be in the root of the checkout directory, not in a subdirectory). Please note that you only need to select this check box if you require Bamboo to detect changes in the externals. If your externals reference a particular (static) revision, you do not need to check this box.
|Use SVN Export||This option will speed up the first-time checkout, but updates are not supported. Implies Force Clean Build.|
|Enable Commit Isolation||Ensures that a build will only have one change, allowing you to isolate your build failures.|
|Automatically detect root URL for branches||Specifies whether the VCS Branching Task automatically determines the location of created branches.|
|Automatically detect root URL for tags||Specifies whether the VCS Tagging Task automatically determines the location of created branches.|
|Enable Quiet Period||Specifies a delay after a single commit is detected before the build is started. This allows multiple commits to be aggregated into a single build. (Only available when configuring an existing plan.) |
Allows you to specify the files that Bamboo should, or should not, use to detect changes.
|Exclude Changesets||ビルドを開始しないチェンジセットのコミット メッセージに合うように正規表現を入力します。|
If your repository can be viewed in a web browser, select the repository type.
This allows links to relevant files to be displayed in the 'Code Changes' section of a build result.
Generic Web Repository
|Stash – specify the following details for the repository:|
See Integrating Bamboo with Bitbucket Server for more information.
FishEye – リポジトリの URL およびその他の詳細を指定します。
See Integrating Bamboo with FishEye for more information.
How do I determine my Repository Path?
If you have previously run builds with changes from your repository, the easiest way of determining your repository path is to view the code changes and copy the path from the start of the path of one of the changed files, up to (but not including) the appropriate root directory. The root directories for repositories are the ones shown by FishEye when browsing a repository (e.g.
- If you are having problems connecting to Subversion, consult our documentation on troubleshooting Subversion connections.
- If you use pre-1.5 Subversion client to access code checked out by Bamboo, you may encounter problems with your builds. This is due to the SVNKit upgrade in Bamboo 2.1.4. Please read this knowledge base article for further details.
- You can add the
-Dsvnkit.http.methods=Basic,NTLMsystem property to SVNKit to have NTLM authentication work with Bamboo.