Bitrise

App · 25 actions

Start, abort and rebuild Bitrise builds and pipelines, read build logs and artifacts, manage project secrets, and follow new, successful and failed builds.

Actions

ActionWhat it does
Abort buildStop a running build, with a reason shown on it.
Abort pipeline runStop a running pipeline, with a reason shown on it.
Delete artifactDelete a build artifact.
Delete secretDelete a project secret.
Get artifactGet an artifact with a download link that works for 10 minutes and its public install page.
Get bitrise.ymlGet a project's full configuration: its workflows, steps and trigger map, as YAML text.
Get buildGet a build's status, workflow, branch, commit and timing.
Get build logGet the end of a build's log and a link to the full log that works for 10 minutes.
Get pipeline runGet a pipeline run's status, stages and trigger.
Get profileGet the Bitrise account the token belongs to.
Get projectGet a project's title, type, repository and owner.
List artifactsList the files a build produced, such as an .ipa or .apk.
List branchesList the branches of a project's repository that have been built.
List buildsList a project's builds, newest first, by workflow, branch, status or time.
List builds across projectsList builds of every project the account can reach, optionally one workspace's or by status.
List pipeline runsList a project's pipeline runs and standalone builds, newest first.
List projectsList the Bitrise projects (apps) the account can reach, optionally by title or type.
List secretsList a project's secrets and their settings, without their values.
List workflowsList the workflows a project has run.
List workspacesList the workspaces (organizations) the account belongs to.
Rebuild buildRun a finished build again with the same parameters and workflow.
Rebuild pipeline runRun a finished pipeline again, in full or only its failed workflows and those after them.
Set secretCreate a project secret, or replace the value and settings of the one with this name.
Start buildStart a build of a workflow or pipeline on a branch, tag or commit, with extra environment variables.
Update artifactTurn an artifact's public install page on or off.

Abort build

Stop a running build, with a reason shown on it.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Buildbuild_slugtextRequired
The build.
Reasonabort_reasontext
Why the build was stopped. Leave empty to say it was stopped from a workflow.
Count as successfulabort_with_successtrue/false
Count the build as successful rather than failed.
Skip notificationsskip_notificationstrue/false
Don't send the build's notifications.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "status": "example"
  }
}

Abort pipeline run

Stop a running pipeline, with a reason shown on it.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Pipeline runpipeline_idtextRequired
The pipeline run.
Reasonabort_reasontext
Why the pipeline was stopped. Leave empty to say it was stopped from a workflow.
Count as successfulabort_with_successtrue/false
Count the pipeline as successful rather than failed.
Skip notificationsskip_notificationstrue/false
Don't send the pipeline's notifications.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {}
}

Delete artifact

Delete a build artifact. This can't be undone.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Buildbuild_slugtextRequired
The build.
Artifactartifact_slugtextRequired
The build artifact.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": {
      "artifact_meta": {},
      "artifact_type": "example",
      "expiring_download_url": "example",
      "file_size_bytes": 1,
      "is_public_page_enabled": true,
      "public_install_page_url": "example",
      "slug": "example",
      "title": "example"
    }
  }
}

Delete secret

Delete a project secret.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
SecretnametextRequired
The secret.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {}
}

Get artifact

Get an artifact with a download link that works for 10 minutes and its public install page.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Buildbuild_slugtextRequired
The build.
Artifactartifact_slugtextRequired
The build artifact.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": {
      "artifact_meta": {},
      "artifact_type": "example",
      "expiring_download_url": "example",
      "file_size_bytes": 1,
      "is_public_page_enabled": true,
      "public_install_page_url": "example",
      "slug": "example",
      "title": "example"
    }
  }
}

Get bitrise.yml

Get a project's full configuration: its workflows, steps and trigger map, as YAML text.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "yaml": "example"
  }
}

Get build

Get a build's status, workflow, branch, commit and timing.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Buildbuild_slugtextRequired
The build.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": {
      "abort_reason": "example",
      "branch": "example",
      "build_number": 1,
      "commit_hash": "example",
      "commit_message": "example",
      "commit_view_url": "example",
      "credit_cost": 1,
      "finished_at": "example",
      "is_on_hold": true,
      "machine_type_id": "example",
      "original_build_params": {},
      "pipeline_workflow_id": "example",
      "pull_request_id": 1,
      "pull_request_target_branch": "example",
      "pull_request_view_url": "example",
      "slug": "example",
      "stack_identifier": "example",
      "started_on_worker_at": "example",
      "status": 1,
      "status_text": "example",
      "tag": "example",
      "triggered_at": "example",
      "triggered_by": "example",
      "triggered_workflow": "example"
    }
  }
}

Get build log

Get the end of a build's log and a link to the full log that works for 10 minutes.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Buildbuild_slugtextRequired
The build.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "expiring_raw_log_url": "example",
    "is_archived": true,
    "log_chunks": [
      {
        "chunk": "example",
        "position": 1
      }
    ]
  }
}

Get pipeline run

Get a pipeline run's status, stages and trigger.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Pipeline runpipeline_idtextRequired
The pipeline run.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "abort_reason": "example",
    "app": {
      "slug": "example"
    },
    "finished_at": "example",
    "id": "example",
    "name": "example",
    "number_in_app_scope": 1,
    "rebuildable": true,
    "stages": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "started_at": "example",
    "status": "example",
    "trigger_params": {
      "branch": "example",
      "commit_hash": "example",
      "commit_message": "example",
      "tag": "example"
    },
    "triggered_at": "example",
    "triggered_by": "example"
  }
}

Get profile

Get the Bitrise account the token belongs to.

Inputs

None.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": {
      "avatar_url": "example",
      "created_at": "example",
      "email": "example",
      "slug": "example",
      "username": "example"
    }
  }
}

Get project

Get a project's title, type, repository and owner.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": {
      "avatar_url": "example",
      "is_disabled": true,
      "is_public": true,
      "owner": {
        "account_type": "example",
        "name": "example",
        "slug": "example"
      },
      "project_type": "example",
      "provider": "example",
      "repo_owner": "example",
      "repo_slug": "example",
      "repo_url": "example",
      "slug": "example",
      "status": 1,
      "title": "example"
    }
  }
}

List artifacts

List the files a build produced, such as an .ipa or .apk.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Buildbuild_slugtextRequired
The build.
Limitlimitnumber
How many artifacts to return, up to 50. Leave empty for Bitrise's default.From 1 to 50.
Next pagenexttext
The paging.next value from the last answer, to read the next page of artifacts.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": [
      {
        "artifact_meta": {},
        "artifact_type": "example",
        "file_size_bytes": 1,
        "is_public_page_enabled": true,
        "slug": "example",
        "title": "example"
      }
    ],
    "paging": {
      "next": "example",
      "page_item_limit": 1,
      "total_item_count": 1
    }
  }
}

List branches

List the branches of a project's repository that have been built.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": [
      "example"
    ]
  }
}

List builds

List a project's builds, newest first, by workflow, branch, status or time.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Workflowworkflowtext
Only builds of this workflow.
Branchbranchtext
Only builds of this branch.
Statusstatustext
Only builds with this outcome.One of: 0 (Not finished), 1 (Successful), 2 (Failed), 3 (Aborted with failure), 4 (Aborted with success).
Started bytrigger_event_typetext
Only builds started by this kind of event.One of: push, pull-request (Pull request), tag.
Pull requestpull_request_idnumber
Only builds of this pull request number.At least 1.
Build numberbuild_numbernumber
Only the build with this number.At least 1.
Started afterafterdate and time
Only builds started after this time.
Started beforebeforedate and time
Only builds started before this time.
Sort bysort_bytext
Which order to list them in. Leave empty for newest first.One of: created_at (Created), running_first (Running builds first).
Limitlimitnumber
How many builds to return, up to 50. Leave empty for Bitrise's default.From 1 to 50.
Next pagenexttext
The paging.next value from the last answer, to read the next page of builds.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": [
      {
        "abort_reason": "example",
        "branch": "example",
        "build_number": 1,
        "commit_hash": "example",
        "commit_message": "example",
        "commit_view_url": "example",
        "credit_cost": 1,
        "finished_at": "example",
        "is_on_hold": true,
        "machine_type_id": "example",
        "original_build_params": {},
        "pipeline_workflow_id": "example",
        "pull_request_id": 1,
        "pull_request_target_branch": "example",
        "pull_request_view_url": "example",
        "slug": "example",
        "stack_identifier": "example",
        "started_on_worker_at": "example",
        "status": 1,
        "status_text": "example",
        "tag": "example",
        "triggered_at": "example",
        "triggered_by": "example",
        "triggered_workflow": "example"
      }
    ],
    "paging": {
      "next": "example",
      "page_item_limit": 1,
      "total_item_count": 1
    }
  }
}

List builds across projects

List builds of every project the account can reach, optionally one workspace's or by status.

Inputs

Workspaceowner_slugtext
Only builds of this workspace's projects.
Statusstatustext
Only builds with this outcome.One of: 0 (Not finished), 1 (Successful), 2 (Failed), 3 (Aborted with failure), 4 (Aborted with success).
Waiting to startis_on_holdtrue/false
Only builds that are waiting to start (on) or have started (off).
Limitlimitnumber
How many builds to return, up to 50. Leave empty for Bitrise's default.From 1 to 50.
Next pagenexttext
The paging.next value from the last answer, to read the next page of builds.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": [
      {
        "abort_reason": "example",
        "branch": "example",
        "build_number": 1,
        "commit_hash": "example",
        "commit_message": "example",
        "commit_view_url": "example",
        "credit_cost": 1,
        "finished_at": "example",
        "is_on_hold": true,
        "machine_type_id": "example",
        "original_build_params": {},
        "pipeline_workflow_id": "example",
        "pull_request_id": 1,
        "pull_request_target_branch": "example",
        "pull_request_view_url": "example",
        "repository": {
          "avatar_url": "example",
          "is_disabled": true,
          "is_public": true,
          "owner": {
            "account_type": "example",
            "name": "example",
            "slug": "example"
          },
          "project_type": "example",
          "provider": "example",
          "repo_owner": "example",
          "repo_slug": "example",
          "repo_url": "example",
          "slug": "example",
          "status": 1,
          "title": "example"
        },
        "slug": "example",
        "stack_identifier": "example",
        "started_on_worker_at": "example",
        "status": 1,
        "status_text": "example",
        "tag": "example",
        "triggered_at": "example",
        "triggered_by": "example",
        "triggered_workflow": "example"
      }
    ],
    "paging": {
      "next": "example",
      "page_item_limit": 1,
      "total_item_count": 1
    }
  }
}

List pipeline runs

List a project's pipeline runs and standalone builds, newest first.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Pipelinepipelinetext
Only runs of the pipeline with this name.
Workflowworkflowtext
Only runs of this workflow.
Branchbranchtext
Only runs of this branch.
Statusstatustext
Only runs with this status.One of: on_hold (On hold), running, succeeded, failed, aborted, succeeded_with_abort (Succeeded with abort).
Started bytrigger_event_typetext
Only runs started by this kind of event.One of: push, pull-request (Pull request), tag.
Started afterafterdate and time
Only runs started after this time.
Started beforebeforedate and time
Only runs started before this time.
Limitlimitnumber
How many runs to return. Leave empty for Bitrise's default of 10.From 1 to 50.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": [
      {
        "branch": "example",
        "build_number": 1,
        "commit_hash": "example",
        "commit_message": "example",
        "credit_cost": 1,
        "finished_at": "example",
        "is_on_hold": true,
        "is_pipeline": true,
        "pull_request_id": 1,
        "slug": "example",
        "started_at": "example",
        "status": 1,
        "tag": "example",
        "triggered_at": "example",
        "triggered_by": "example",
        "triggered_workflow": "example"
      }
    ],
    "paging": {
      "next": "example",
      "page_item_limit": 1,
      "total_item_count": 1
    }
  }
}

List projects

List the Bitrise projects (apps) the account can reach, optionally by title or type.

Inputs

Titletitletext
Only the project with this title.
Project typeproject_typetext
Only projects of this type, such as ios, android or flutter.
Sort bysort_bytext
Which order to list them in. Leave empty for the latest build first.One of: last_build_at (Last build), created_at (Created).
Limitlimitnumber
How many projects to return, up to 50. Leave empty for Bitrise's default.From 1 to 50.
Next pagenexttext
The paging.next value from the last answer, to read the next page of projects.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": [
      {
        "avatar_url": "example",
        "is_disabled": true,
        "is_public": true,
        "owner": {
          "account_type": "example",
          "name": "example",
          "slug": "example"
        },
        "project_type": "example",
        "provider": "example",
        "repo_owner": "example",
        "repo_slug": "example",
        "repo_url": "example",
        "slug": "example",
        "status": 1,
        "title": "example"
      }
    ],
    "paging": {
      "next": "example",
      "page_item_limit": 1,
      "total_item_count": 1
    }
  }
}

List secrets

List a project's secrets and their settings, without their values.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "secrets": [
      {
        "expand_in_step_inputs": true,
        "id": "example",
        "is_exposed_for_pull_requests": true,
        "is_protected": true,
        "name": "example",
        "scope": "example"
      }
    ]
  }
}

List workflows

List the workflows a project has run.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": [
      "example"
    ]
  }
}

List workspaces

List the workspaces (organizations) the account belongs to.

Inputs

None.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": [
      {
        "avatar_icon_url": "example",
        "concurrency_count": 1,
        "name": "example",
        "slug": "example"
      }
    ]
  }
}

Rebuild build

Run a finished build again with the same parameters and workflow.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Buildbuild_slugtextRequired
The build.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "message": "example",
    "results": [
      {
        "build_number": 1,
        "build_slug": "example",
        "build_url": "example",
        "message": "example",
        "status": "example",
        "triggered_pipeline": "example",
        "triggered_workflow": "example"
      }
    ],
    "service": "example",
    "slug": "example",
    "status": "example"
  }
}

Rebuild pipeline run

Run a finished pipeline again, in full or only its failed workflows and those after them.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Pipeline runpipeline_idtextRequired
The pipeline run.
Only failed workflowspartialtrue/false
Rerun only the workflows that failed and those after them.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {}
}

Set secret

Create a project secret, or replace the value and settings of the one with this name.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
NamenametextRequired
The secret's name, such as API_KEY. Steps read it as $API_KEY.
ValuevaluetextRequired
The secret's value.
Protectedis_protectedtrue/false
Protect the secret: its value can't be read or changed afterwards, only replaced by deleting it.
Expose for pull requestsis_exposed_for_pull_requeststrue/false
Let builds of pull requests read the secret.
Expand in step inputsexpand_in_step_inputstrue/false
Replace $NAME references in step inputs with the value.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "name": "example",
    "saved": true
  }
}

Start build

Start a build of a workflow or pipeline on a branch, tag or commit, with extra environment variables.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Workflowworkflowtext
The workflow to run. Leave empty to let the trigger map pick one from the branch.
Pipelinepipeline_idtext
A pipeline to run instead of a workflow.
Branchbranchtext
The branch to build, such as main.
Tagtagtext
A Git tag to build.
Commitcommit_hashtext
A commit to build.
Messagecommit_messagetext
A message to show on the build.
Environment variablesenvironmentsobject
Environment variables for this build, by name.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "message": "example",
    "results": [
      {
        "build_number": 1,
        "build_slug": "example",
        "build_url": "example",
        "message": "example",
        "status": "example",
        "triggered_pipeline": "example",
        "triggered_workflow": "example"
      }
    ],
    "service": "example",
    "slug": "example",
    "status": "example"
  }
}

Update artifact

Turn an artifact's public install page on or off.

Inputs

Projectapp_slugtextRequired
The Bitrise project (app).
Buildbuild_slugtextRequired
The build.
Artifactartifact_slugtextRequired
The build artifact.
Public install pageis_public_page_enabledtrue/falseRequired
Whether anyone with the link can open the artifact's install page.

Outputs

dataobject
The response from Bitrise.
Example output
{
  "data": {
    "data": {
      "artifact_meta": {},
      "artifact_type": "example",
      "expiring_download_url": "example",
      "file_size_bytes": 1,
      "is_public_page_enabled": true,
      "public_install_page_url": "example",
      "slug": "example",
      "title": "example"
    }
  }
}

On this page