プランのステージの使用

Stages group (or 'map') jobs to individual steps within a plan's build process. For example, you may have an overall build process plan that comprises a compilation step, followed by several test steps, followed by a deployment step. You can create separate Bamboo stages to represent each of these steps.

ステージとは:

Bamboo で作成された新しい各プランには、少なくとも 1 つのステージ (デフォルト ジョブ用) が含まれ、「デフォルト ステージ」と呼ばれます。Bamboo 管理者のみがステージを設定できます。

このページの内容

Types of stages in Bamboo

Normal stage

Normal stage must successfully complete all its jobs before the next stage in the plan can be run. If a normal stage is not run successfully, the following normal stage can't be run.

Manual stage

A user has to trigger this type of stage manually to run it. 

さらに詳しく...

Any stage in a plan can be configured to be a manual stage. If you run a plan with manual stages, Bamboo will pause the execution of the plan every time it reaches a manual stage. The plan build will only continue once a user has manually triggered the stage.

  • 手動ステージは、前のステージが正常に完了した場合にのみ実行できます。
  • 手動ステージは、プランに設定されている順序で実行する必要があります。手動ステージをスキップすることはできません。
  • 手動ステージは、このアイコン (実行予定外) またはこのアイコン (実行保留中) が付いた状態でプラン ナビゲーターに表示されます。
  • プランで手動ステージを実行するには、'ビルド' 権限が必要です。
  • Not even Final stages will be run after an untriggered manual stage.
  • A manual stage can also be a final stage. In this case, the build will stop at the manual stage and wait for a user to execute it manually. You can start this particular final-manual stage whether a build is successful or not. 

Final stage

Final stage is run regardless whether previously run stages were successful or not.

さらに詳しく...

Final stages can be useful if you want to run cleanups or aggregate results regardless whether a build succeeds or not. Any stage in a plan can be configured to be a final stage

A final stage can also be a manual one. In this case, the build will stop at the manual stage and wait for a user to execute it manually. You can start this particular final-manual stage whether a build is successful or not. 

If a final stage follows a manual stage, the final stage will not run until the manual stage is run. If the build fails and the manual stage cannot be run, you can't run the final stage.




Find, create, edit and delete a stage

Navigate to the stages for a plan...
  1. From the Bamboo header, select Build > All build plans.
  2. Click the name of the plan you want to edit.
  3. Select Actions > Configure Plan.
  4. Select the Stages tab.
Create a stage...
  1. Go to the stages for your plan.
  2. Click Create Stage.
  3. Complete the form and click Create.
  4. (optional) You may want to do one or more of the following with your new stage:
    • 新しいステージをステージの一覧内でドラッグ アンド ドロップして、ステージの順序を変更します。
    • ステージに新しいジョブを追加します。
    • 他のステージから新しいステージにジョブをドラッグ アンド ドロップで移動します。
You may break artifact dependencies by moving stages, or by moving jobs between stages. Bamboo will warn you if a dependency will be broken by moving a stage or a job.
Edit a stage...
  1. 前述の手順で、プランのステージに移動します。
  2. 必要に応じてステージを編集します。
    • ステージの名前や説明を編集するか、手動ステージかどうかを設定するには、歯車アイコンをクリックし、ステージの設定 を選択します。
    • ステージを移動するには、ステージをドラッグしてプラン内の目的の場所にドロップします。
You may break artifact dependencies by moving stages. Bamboo will warn you if a dependency will be broken by moving a stage.
Delete a stage...
  • ステージを削除すると、そのステージに関連するすべてのジョブ設定、`アーティファクト、ログ、結果が削除されます。ステージの削除後、これらを復元することはできません。
  • ステージの削除により、アーティファクトの依存関係が切り離されることがあります。
  1. Go to the stages for the plan, as described above.
  2. 関連するステージの歯車アイコンをクリックし、ステージの削除 を選択します。
  3. 確認をクリックしてステージを削除します。削除したステージは復元できません。ご注意ください。




最終更新日 2020 年 7 月 20 日

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

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