Subversion

ソース コード リポジトリへのリンク

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

このページでは、Subversion リポジトリを使用するように Bamboo を設定する方法を説明します。

Bamboo では、次のレベルでリポジトリを指定できます。

  • グローバル - Bamboo のすべてのプランでリポジトリを利用できます。
  • プラン - Bamboo プランのすべてのジョブでリポジトリを利用できます。
  • ジョブ - Bamboo ジョブのすべてのタスクでリポジトリを利用できます。

推奨されるアプローチは、リンクされたソース リポジトリをグローバル レベルで設定することです。「ソース コード リポジトリへのリンク」を参照してください。

On this page:

Subversion ソース リポジトリを設定する

  1. リンクされたリポジトリ、計画、またはジョブのリポジトリ設定に移動します。ソース コード リポジトリへのリンク」を参照してください。
  2. [リポジトリの追加] をクリックして新しいリポジトリを追加するか、既存のリポジトリ設定を編集します。
  3. [ソース リポジトリ] リストから [Subversion] を選択します。
  4. Bamboo 内でリポジトリを識別するのに役立つ [表示名] を入力します。
  5. 計画の Subversion ソース リポジトリ用に以下の設定を設定できます。


Repository URL 
The location of the root of your Subversion repository. For example:


http://svn.collab.net/repos/svn

(info) Note that you can use global variables in this field (see Using Global or Build-specific Variables).

(info) Maven 2 プロジェクトをインポートする場合は、この場所にプロジェクトの pom.xml ファイルが含まれているはずです。

Branch name
The display name of a branch or a module that you want to check out. For example My project. The name will be used in the Bamboo UI.

Branch path
The path to a branch or a module that you want to checkout. For example, trunk, branches/my_branchThe path is relative to the root URL of the repository.

(info) Note that you can use global variables in this field (see Using Global or Build-specific Variables).

(info) Maven 2 プロジェクトをインポートする場合は、この場所にプロジェクトの pom.xml ファイルが含まれているはずです。

Username (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:
    • 秘密鍵 - SSH 秘密鍵の絶対パス。
    • パスフレーズ - SSH 秘密鍵のパスフレーズ。

(info) リモート エージェントを使用する場合は、SSH 秘密鍵ファイルをエージェント ボックスの指定された同じ場所にコピーする必要があります。

  • SSL Client Certificate – if you choose to authenticate using an SSL Client Certificate, you need to provide the following details:
    • Private Key — the absolute path of your SSL client certificate .
    • Passphrase — the passphrase for your SSL client certificate.

(info) クライアント証明書は PKCS12 形式であり、クライアント証明書ファイルはパスフレーズで保護されている必要があることにご注意ください。そうでない場合は、ユーザー キーを開いた際に JDK のセキュリティ エンジンによって実行時例外がスローされます。

詳細オプション

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.

Include/Exclude Files
Allows you to specify the files that Bamboo should, or should not, use to detect changes.

Enter into File Pattern a regular expression to match the files that Bamboo  includes or excludes. The regex pattern must match the file path in the repository. See sub page for examples.

Exclude Changesets
Enter a regular expression to match the commit messages for changesets that should not start a build.

Web Repository 
If your repository can be viewed in a web browser, select the repository type.

これによって、関連するファイルへのリンクをビルド結果の [コード変更] セクションに表示できます。

一般的な Web リポジトリ

    • Web Repository URL – the URL of the repository.
    • Web Repository Module — the particular repository required for this plan or job, if the Web Repository URL above points to multiple repositories.

Stash – specify the following details for the repository:

    • Stash URL – the URL of your Stash (now Bitbucket Server) instance (e.g. 'https://bitbucket.mycompany.com').
    • Stash プロジェクト キー - Stash 内のプロジェクトのキー (例:「CONF」)。
    • Repository Name – the name of the repository in Stash (e.g. 'conf-dev').

Use this option to connect to a Bitbucket Server repository.

See Integrating Bamboo with Bitbucket Server for more information.


Fisheye – specify the URL and other details for the repository:

    • Fisheye URL — the URL of your Fisheye repository (e.g. ' https://atlaseye.atlassian.com/ ').
    • Repository Name — the name of your Fisheye repository (e.g. 'Bamboo'). This is effectively the alias for your repository path.
    • Repository Path — the path for your Fisheye repository (e.g. '/atlassian/bamboo/').

See Integrating Bamboo with Fisheye for more information.

リポジトリのパスを特定する方法

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. trunk)). For example, if a code change listed /atlassian/bamboo/trunk/bamboo-acceptance-test/pom.xml, the path would be /atlassian/bamboo/.
If you have not previously run builds with changes from your repository, you will need to ask your Fisheye administrator for the repository path indexed by Fisheye.

注意

  • Subversion への接続に問題がある場合は、Subversion 接続のトラブルシューティングに関するドキュメントを参照してください。
  • 1.5 より前のバージョンの Subversion クライアントを使用して Bamboo によってチェックアウトされたコードにアクセスすると、ビルドで問題が発生する可能性があります。これは、Bamboo 2.1.4 で SVNKit がアップグレードされたことが原因です。詳細については、このナレッジ ベース記事をお読みください。
  • SVNKit に -Dsvnkit.http.methods=Basic,NTLM システム プロパティを追加すると、Bamboo で NTLM 認証を使用できます。
最終更新日 2018 年 7 月 6 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.