When configuring a plan, you may want to specify variables to be used in the build process. For details on how variables are used, see Bamboo variables.
Global variables are one type of variable that is available to you. Global variables are defined across your entire Bamboo instance, and have the same value for every plan that is built by Bamboo. If you want to define a variable for a specific plan rather than across all plans, define a plan variable as described in Defining plan variables.
Global variables can be accessed by using ${bamboo.globalVarName
}. Global variables can also be overridden at runtime when running a manual build. For more information, see Running a plan build manually.
グローバル変数ページにアクセスするには、次の手順に従います。
- Click theicon and select Bamboo admin.
- Click Global Variables, in the left navigation column under the 'Build Resources' section.
- 必要に応じて、グローバル変数を追加、更新、または削除します。
- キーと値を入力したら、[Add (追加)] をクリックして新しい変数を追加します。
- 既存の行の更新は、テーブルのセル間を移動すると保存されます。
- Click the trash can to delete a variable.
スクリーンショット: グローバル変数