Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.7 KB

start-builds.md

File metadata and controls

40 lines (31 loc) · 1.7 KB

Start (parallel) builds from the Workflow

Description

Start one or more builds in parallel with specified Workflows from the parent Workflow. You can optionally add a Step to wait for their completion.

Prerequisites

  • Make sure you have a valid Bitrise API key in your Secrets ($BITRISE_API_KEY). See Personal access tokens for more details.
  • Make sure that you have Workflow(s) you would like to run in parallel (workflow-1 and workflow-2 in the example below).

Instructions

  1. Add a Bitrise Start Build Step. Set the input variables:
    • workflows: The Workflow(s) to start. One Workflow per line.
    • Bitrise Access Token: $BITRISE_API_KEY.
  2. (Optional) Add any Step you would like to run in parallel in the parent Workflow while the triggered Workflows are running.
  3. (Optional) Add a Bitrise Wait for Build Step. Set the input variables:
    • Bitrise Access Token: $BITRISE_API_KEY

You can only start a build for the same app using this Workflow Recipe. If you would like to start a build for a different app, you can use the Trigger Bitrise workflow Step.

bitrise.yml

parent-workflow:
  steps:
  - build-router-start@0:
      inputs:
      - workflows: |-
          workflow-1
          workflow-2
      - access_token: "$BITRISE_API_KEY"
  - script@1:
      inputs:
      - content: echo "Doing something else..."
  - build-router-wait@0:
      inputs:
      - access_token: "$BITRISE_API_KEY"