Forums

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

Step depends another step

Igor Ramos Pestana
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!
May 19, 2020

Hi,

I would like to know if there is possible that a step only be available/visible if another step passed. Something like that:

 

- step: &build-develop
   name: build develop
   script:
     - echo "build develop"

- step: &build-prod
   name: build prod
   script:
     - echo "build prod"

- step: &deploy-prod
   name: deploy prod
   script:
     - echo "deploy prod"
   conditional: &build-prod

  

 

1 answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 22, 2020

Hi @Igor Ramos Pestana ,

Thank your for your question!

Step - Defines a build execution unit. Steps are executed in the order that they appear in the bitbucket-pipelines.yml file.

That's why, in your case, step "deploy prod" will execute only after success previous step "build prod".

Please follow the Configure bitbucket-pipelines.yml guide for more details.

Cheers,
Alex

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events