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,459,321
Community Members
 
Community Events
176
Community Groups

Bitbucket pipeline - How do i skip the deploy step to Dev & directly deploy to required environment.

Bitbucket Pipeline : Is there any way to skip the deploy step to the Dev environment & directly deploy to Stage / prod environment using manual triggers

Like in Gitlab pipeline, we can directly deploy to which ever environment we like dev/stage/prod etc.. by skipping the deploy step to Dev/stage using manual triggers after the build is succeeded. 

 

Below is my pipeline, here i directly want to deploy to stage after build and i want to skip the Dev deploy step.


image: node:14.17.1

pipelines:
branches:
develop:
- step:
name: build
script:
- ......
artifacts:
- .....
- step:
name: DEV-Deploy
deployment: Dev
trigger: manual
script:
- .....
- step:
name: STAGE-Deploy
deployment: Stage
trigger: manual
script:
- .....

 

Please advise.. 

Thanks

1 answer

0 votes

Hey Chanakya,

If you would like to set up a manual trigger to deploy to an environment such as staging/production  - you can try using the "custom" tag within the bitbucket-pipelines.yml file.

The "custom" tag allows you to select the pipeline step whenever you like manually from the drop-down list within Repository > Pipelines > Run Pipeline - you can run this against any branch within your repository accordingly.

More information can be found here:
https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/

For example:

 custom:
   manualdeploy:
    - step:
     name: 'Manual Build'
     deployment: staging
     script:
     - <Script goes here>
         

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events