Run pipelines manually

To run a pipeline manually, add the pipeline configuration in the custom section of your bitbucket-pipelines.yml file and trigger it from the Bitbucket Cloud GUI.

 


 

On this page


 


 

The manual triggers setup in Bitbucket Pipelines is just two steps.

Before you begin

You need write permission in the repository to run pipelines manually.

Step 1: Add custom pipelines to the bitbucket-pipelines.yml file

It's possible to manually trigger a build in Bitbucket Pipelines only if the build pipeline configuration is included in the custom section of your bitbucket-pipelines.yml file:

 

pipelines:
  custom: # Pipelines that are triggered manually
    sonar:
      - step:
          script:
            - echo "Manual triggers for Sonar are awesome!"
    deployment-to-prod:
      - step:
          script:
            - echo "Manual triggers for deployments are awesome!"
  branches:  # Pipelines that run automatically on a commit to a branch
    staging:
      - step:
          script:
            - echo "Automated pipelines are cool too."

Step 2: Trigger the pipeline from Bitbucket Cloud

Pipelines that are defined in the custom section of your bitbucket-pipelines.yml file can be triggered manually from the Bitbucket Cloud interface.

  1. Pick a commit and open it in the commit detail view (Commits > commit hash). 
  2. Click Run pipeline:

  3. Pick a pipeline and click Run:

Was this helpful?

Thanks for your feedback!

Why was this unhelpful?

Have a question about this article?

See questions about this article

Powered by Confluence and Scroll Viewport