デプロイ変数
Bamboo manages a number of standard reserved variables that are available during deployment executions.
名前が繰り返される場合、次のリストで後にある変数が前の変数をオーバーライドします。
- グローバル変数
- 以下に定義されているリリース変数
- 環境レベルで定義されたユーザー変数
- 次の表の自動生成変数
| 変数 | 説明 |
|---|---|
| bamboo.agentID | The id of the agent that the deployment is executed on. |
| bamboo.agentWorkingDirectory | エージェントの作業ディレクトリへのパス。これは Bamboo の作業ディレクトリとは異なります。 |
| bamboo.build.working.directory | Bamboo の作業ディレクトリへのパスです。これはビルド計画とデプロイ プロジェクトの両方で使用されます。 |
| bamboo.deploy.environment | リリースがデプロイされる環境の名前。 |
| bamboo.deploy.project | デプロイ プロジェクトの名前。 |
| bamboo.deploy.rollback | デプロイされるリリースが置き換えられるリリースよりも古い場合に当てはまります。 |
bamboo.deploy.release bamboo.deploy.version | デプロイされているリリースの名前。「.release」と「.version」のいずれかを使用できます。どちらもデプロイされるリリースの名前を返します。 |
bamboo.deploy.release.previous bamboo.deploy.version.previous | The name of the release that is being replaced (if available). Either .release or .version can be used - both return the name of the release being replaced. |
| bamboo.resultsUrl | The URL to the screen in Bamboo that dispays build results. |
For Bamboo variables to do with build plans, and releases, see Bamboo variables.
デプロイ環境の変数を設定する
デプロイ環境変数は、環境パネルの [その他の設定] セクションの一部として設定されます。
On this page:
環境変数を設定する手順は以下のとおりです。
- Open your deployment project and expand the relevant environment panel. In the Other settings section, click Variables:
- [変数] 画面の関連フィールドに有効なキーと値を入力します。
- Click on Add to add the variable scheme:
- You can remove unwanted variables by clicking the relevant dustbin icon on the right of the Variables screen.
- 戻るには、[Back to deployment project (デプロイ プロジェクトに戻る)] をクリックします。

