This is the documentation for Bamboo 5.5. View this page for the

Unknown macro: {spacejump}

of Bamboo, or visit the latest Bamboo documentation.

デプロイ変数

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. デプロイ プロジェクトを開き、関連する環境パネルを展開します。[その他の設定] セクションで [変数] をクリックします。
  2. [変数] 画面の関連フィールドに有効なキーと値を入力します。
  3. [追加] をクリックして変数スキームを追加します。
  4. [変数] 画面の右側にある、該当する十字アイコンをクリックすると、不要な変数を削除できます。
  5. 戻るには、[Back to deployment project (デプロイ プロジェクトに戻る)] をクリックします。
  • ラベルなし