デプロイ変数

Bamboo manages a number of standard reserved variables that are available during deployment executions. 

名前が繰り返される場合、次のリストで後にある変数が前の変数をオーバーライドします。

  • グローバル変数
  • 以下に定義されているリリース変数
  • 環境レベルで定義されたユーザー変数
  • 次の表の自動生成変数
変数説明
bamboo.agentIDThe id of the agent that the deployment is executed on.
bamboo.agentWorkingDirectoryエージェントの作業ディレクトリへのパス。これは Bamboo の作業ディレクトリとは異なります。
bamboo.build.working.directoryBamboo の作業ディレクトリへのパスです。これはビルド計画とデプロイ プロジェクトの両方で使用されます。
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.resultsUrlThe URL to the screen in Bamboo that dispays build results.

For Bamboo variables to do with build plans, and releases, see Bamboo variables.

デプロイ環境の変数を設定する

デプロイ環境変数は、環境パネルの [その他の設定] セクションの一部として設定されます。

環境変数を設定する手順は以下のとおりです。

  1. Open your deployment project and expand the relevant environment panel. In the Other settings section, click Variables:
  2. [変数] 画面の関連フィールドに有効なキーと値を入力します。
  3. Click on Add to add the variable scheme:


  4. You can remove unwanted variables by clicking the relevant dustbin icon on the right of the Variables screen.
  5. 戻るには、[Back to deployment project (デプロイ プロジェクトに戻る)] をクリックします。
  • ラベルなし