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.

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

See also Configure bitbucket-pipelines.yml.

 

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 年 9 月 4 日

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

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

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

コミュニティへの質問

Powered by Confluence and Scroll Viewport.