Run pipelines manually

Manual steps

Manual steps allows you to customize your CI/CD pipeline by configuring steps that will only be run when manually triggered by someone. This is useful for steps like deployment steps, where some manual testing or checks need to happen before the step runs. You can configure a step as manual by adding trigger: manual to the step in your bitbucket-pipelines.yml file.

 

Custom pipelines

Custom pipelines are used when you want to manually run a pipeline against a specific commit and for configuring scheduled builds. 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 UI.

You'll need write permission on the repository to run a pipeline manually.

 

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

You can 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 either the Branches view or the Commits view in the Bitbucket Cloud interface.

Run a pipeline manually from the Branches view

詳細を見るにはクリックしてください...
  1. Go to the Branches view in Bitbucket.
  2. Click on the Actions menu for the branch you want to run a pipeline for, then click Run pipeline for a branch:


  3. Choose a custom pipeline, then click Run:

Run a pipeline manually from the Commits view

詳細を見るにはクリックしてください...
  1. Go to the Commits view for a commit (click Commits, then a commit hash). 
  2. Click Run pipeline:


  3. Choose a custom pipeline, then click Run:



最終更新日 2017 年 11 月 27 日

この翻訳に満足しましたか?

はい
いいえ
この記事についてのフィードバックを送信する

お探しの情報が見つかりませんか?

コミュニティへの質問

Powered by Confluence and Scroll Viewport.