Skip to main content

Use the Bitrise plugin step

With the Bitrise plugin step, you can use Bitrise Integrations in your Harness CI pipelines. For more information about plugins in CI pipelines, go to Explore plugins.

info

Currently, the Bitrise plugin step is supported for the Harness Cloud build infrastructure only.

Usage example

In the following YAML example, a Bitrise plugin step uses the Bitrise Android Build step. It calls the source repo (bitrise-steplib/bitrise-step-android-build) and provides configuration parameters as described in the Android Build README.

              - step:
type: Bitrise
name: bitrise android build
identifier: bitrise_android_build
spec:
uses: github.com/bitrise-steplib/bitrise-step-android-build.git
with:
variant: 'debug'
build_type: 'apk'

Settings and specifications

To add a Bitrise plugin step to your pipeline YAML, add a Bitrise step, for example:

              - step:
type: Bitrise
name: bitrise android build
identifier: bitrise_android_build
spec:
uses: github.com/bitrise-steplib/bitrise-step-android-build.git
with:
variant: 'debug'
build_type: 'apk'

The spec parameters define which Bitrise Integration to use, Bitrise Integration inputs, and environment variables that you want to pass to the Integration. These are configured according to the Integration's usage specifications.

  • uses: Specify the Bitrise Integration's source repo, such as github.com/bitrise-steplib/bitrise-step-android-build.git.
  • with: If required by the Integration, provide a mapping of key-value pairs representing Integration inputs, such as build_type: 'apk'.
  • env: If required by the Integration, provide a mapping of environment variables to pass to the Integration.
tip

If you already configured Bitrise Integrations elsewhere, you can transfer Bitrise Integrations into Harness CI.

You can use variable expressions in the with and env settings. For example, credentials: <+stage.variables.[TOKEN_SECRET]> uses a stage variable.

Transfer Bitrise Integrations into Harness CI

If you already configured Bitrise Integrations elsewhere, the Bitrise inputs mapping is equivalent to the Harness Bitrise plugin step's spec: with: mapping. The following table compares Bitrise inputs specification with the equivalent Harness with specification.

Bitrise `inputs` Harness `with`
    inputs:
- variant: debug
- build_type: apk
      with:
variant: 'debug'
build_type: 'apk'