Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,614
Community Members
 
Community Events
176
Community Groups

Bitbucket Pipelines & approvals

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

0 votes

@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  

@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}'

 

@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.

Sounds like no option exists within Bitbucket Pipelines itself? 

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

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events