Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket Pipelines & approvals

Monica Gordillo
Contributor
April 8, 2021

I know that Bitbucket Pipelines has the ability to make a deployment manual (trigger: manual).  Is there a way to send approval to another user before continuing with the deployment to production?  Maybe there's a 3rd party pipe that can do this?  

2 answers

1 vote
Justin Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 18, 2021

@Monica Gordillo Currently Bitbucket Pipelines doesn't have the capability to request approvals for deployments within the product. Bitbucket Pipelines does have integration with Jira Service Management which allows you to request approvals. https://bitbucket.org/blog/a-modern-approach-to-change-management-with-bitbucket-and-jira-service-desk  

nareshit61
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 9, 2022

@Justin Thomas @Monica Gordillo Will this code work for auto-approval?

build: &build
step:
name: Build
script:
- echo "Starting build..."
#- <your build logic>
after-script:
- ALERT_TYPE="success"
- if [[ $BITBUCKET_EXIT_CODE -ne 0 ]]; then ALERT_TYPE="error" ; fi
- pipe: atlassian/email-notify:0.3.12
variables:
USERNAME: 'myemail@example.com'
PASSWORD: $PASSWORD
FROM: 'myemail@example.com'
TO: 'example1@example.com, example2@example.com'
HOST: 'smtp.gmail.com'
SUBJECT: '${ALERT_TYPE}:Bitbucket Pipe Notification for ${BITBUCKET_BRANCH}'

 

1 vote
marc -Collabello--Phase Locked-
Community Champion
April 10, 2021

@Monica Gordillo 

When you use a manual trigger (see e.g. https://bitbucket.org/blog/pipelines-manual-steps-confidence-deployment-pipeline ), you can send an email from e.g. a bash script or through a webhook.

Monica Gordillo
Contributor
April 12, 2021

Sounds like no option exists within Bitbucket Pipelines itself? 

Unfortunately, the manual trigger cannot be the only/first step in the pipeline. 

Aurimas Navardauskas April 15, 2024

I'd love to be able to configure approvals to move on to deployment to prod stage in the pipeline.

jeroen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 9, 2025

Hi, i have been using microsoft devops for years, this is my first dive into bitbucket, it seems there is no support for approvals? So how are you doing that? I am used to the following pipeline. one yaml with 5 steps, build artefact and run tests. Then automatic deploy to development, then waiting for approval from tester to deploy to test, and the same for acceptance and production. for production i need 2 approvers. Can this be done in Bitbucket pipelines?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events