Skip to main content

ワークフローの管理

概要

複数のワークフローをチェーンしたり、チェーン内のワークフローの順序を並べ替えたり、Bitriseワークフローエディターでいつでもワークフローの名前を変更したりできます。

Bitriseワークフローエディターでは、複数のワークフローをチェーンしたり、チェーン内のワークフローの順序を並べ替えたり、ワークフローの名前をいつでも変更したりできます。

Offline Workflow Editor

The Workflow Editor is available both online and offline:

The Workflows & Pipelines screen

The Workflows & Pipelines page provides an overview of all your Workflows and Pipelines which are the most fundamental structural elements of your Bitrise configuration.

workflow-and-pipelines.png

To get to the Workflows & Pipelines page, open your app on Bitrise and click the Workflows button. On the page, you can:

  • View the list of all Workflows and Pipelines. For the automatically generated default Workflows, you can also see a brief summary of their function. You can filter for any Workflow or Pipeline by name.デフォルトのワークフロー

  • Start or schedule a build. You can do so either by clicking the Start/schedule build button or you can find the Workflow or Pipeline you want to build and click the Run a build runbuild.svg button next to their name. In the case of the latter, the start build dialogue window will have the selected Workflow or Pipeline already set. For more information on starting builds, see: ビルドの開始.

  • Enter the Workflow Editor to create a new Workflow: click the Create Workflow button. For more information about creating Workflows, see ワークフローの作成.

  • Enter the Workflow Editor to edit your selected Workflow by clicking the Edit Workflow edit-webhook.svg next to their name. For a Pipeline, this button takes you to the bitrise.yml tab of the Workflow Editor to edit the app's bitrise.yml configuration file.

  • You can also choose to go the bitrise.yml tab directly: click the Edit bitrise.yml button. Read more about the bitrise.yml file: bitrise.ymlの基本.

If you need additional resources, you can click Help button on the page to read some of our guides to getting started with Bitrise.

ワークフローを連鎖させる

複数のワークフローを設定して、連続して実行することができます。これらのワークフローの順序を並べ替えたり、新しいワークフローをチェーンに追加したり、既存のワークフローをチェーンからいつでも削除したりできます。

Bitrise開始ビルドステップ

このガイドで説明されているようにワークフローをチェーン化した場合でも、すべてのワークフローは同じ仮想マシンで実行されることに注意してください。ただし、 Bitrise Start Build ステップ、トリガーされたワークフローのそれぞれは、別々の仮想マシンで実行されます。 単一のトリガーで並列ビルドを開始する

  1. でアプリを開きます ビットライズ

  2. クリック ワークフロー メインページのボタン。

  3. ワークフローとパイプライン ページで、必要なワークフローを見つけます。

    workflow-and-pipelines.png
  4. Click the ellipsis (...) button to the right of the name of the Workflow.

  5. クリック 前にワークフローを追加する 現在選択されているワークフローの前にワークフローをチェーンするか、をクリックします 後にワークフローを追加 現在選択されているワークフローの後にワークフローをチェーンします。

    Managing Workflows
  6. クリック 保存する 右上隅にあります。

例1 Chaining Workflows in YAML

In this example, we're chaining together three Workflows: test, deploy, and ci, using the before_run and after_run parameters.

workflows:
  test:
    envs:
    - IS_TEST: "true"
    steps:
    # test Steps to run

  deploy:
    before_run:
    - test
    steps:
    # steps to deploy

  ci:
    before_run:
    - test
    after_run:
    - deploy

ユーティリティ ワークフローを直接設定する方法の詳細については、 bitrise.yml ファイル、チェック ワークフローリファレンス.


連鎖ワークフローの再配置

チェーンができたら、ドラッグアンドドロップメニューでワークフローの順序を簡単に並べ替えることができます。

  1. でアプリを開きます ビットライズ

  2. クリック ワークフロー メインページのボタン。

  3. ワークフローとパイプライン ページで、必要なワークフローを見つけます。

    workflow-and-pipelines.png
  4. Click the ellipsis (...) button to the right of the name of the Workflow.

  5. クリック 再配置 チェーンのワークフローを再配置できるドラッグアンドドロップメニューを表示します。

    Managing Workflows
  6. クリック 保存する 右上隅にあります。

ワークフローの名前変更

必要に応じていつでもワークフローの名前を変更できます。すばやく簡単です。

  1. でアプリを開きます ビットライズ

  2. クリック ワークフロー メインページのボタン。

  3. ワークフローとパイプライン ページで、必要なワークフローを見つけます。

    workflow-and-pipelines.png
  4. クリック 名前を変更 ワークフローの名前の横。

  5. 新しい名前を入力し、チェックマークをクリックして新しい名前を保存します。

  6. クリック 保存する 右上隅にあります。

ユーティリティ ワークフロー

Bitrise は、ユーティリティワークフローと呼ばれる特別なタイプのワークフローをサポートしています。ユーティリティ ワークフローの ID は常にアンダースコア文字で始まります。たとえば、 _setup.これらは通常、いくつかの異なるワークフローの開始時または終了時に必要なタスクを実行するために使用されます。アプリ。

ユーティリティ ワークフローを作成できます まったく同じように 通常のものを作成するとき。ユーティリティ ワークフローであることを示すには、名前の前にアンダースコアを付けるだけです。

Utility Workflows cannot run alone

ユーティリティ ワークフローは、スタンドアロン ワークフローとして実行できません。ワークフローの前または後に、通常のワークフローと一緒にチェーンする必要があります。 ワークフローを連鎖させる.

例1 Utility Workflow in YAML

In this example, we have two utility Workflows, called _setup and _send-notifications. They are chained together with two Workflows called test and ci using the before_run and after_run parameters.

workflows:
  _send-notifications:
    steps:
    # send notifications

  _setup:
    steps:
    # setup Steps to run

  test:
    before_run:
    - _setup
    envs:
    - IS_TEST: "true"
    steps:
    # test Steps to run

  ci:
    before_run:
    - test
    after_run:
    - _send-notifications

ユーティリティ ワークフローを直接設定する方法の詳細については、 bitrise.yml ファイル、チェック ワークフローリファレンス.