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,369,006
Community Members
 
Community Events
168
Community Groups

Running multiple steps on branch push with same deployment variables

Here's bitbucket-pipelines.yml format I am working on

 

image: xx

steps:
- step: &build-container
script:
- <BUILD SOMETHING>
- step: &deploy-container
script:
- <DEPLOY SOMETHING>

branches:
develop:
- step:
<<: *build-container
deployment: dev-custom
- step:
<<: *deploy-container
deployment: dev-custom

This gives the error `The deployment environment 'dev-custom' in your bitbucket-pipelines.yml file occurs multiple times`

This is very genuine scenario where I want to use the same deployment variables in two different steps. I want to create modular steps instead of one giant monster step.

This feature has been open with Bitbucket for at-least 3 years now but there is no traction on it.

1 answer

0 votes

Hi Divyang,

I understand the need for this feature, our development team has been working on this and it is expected to be released in Q3 2022, please see our roadmap below:

In case you haven't done so already, you can add yourself as a watcher in the feature request here https://jira.atlassian.com/browse/BCLOUD-18261, by selecting the Start watching this issue link, so that you get notified via email on updates. When this feature is released, we will update this feature request.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events