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,559,416
Community Members
 
Community Events
184
Community Groups

Conditionally execute some steps in pipeline

I am using semantic release in my pipeline.

 

if semantic release creates a new version:

1. create a new docker image

2. deploy to QA environment

My problem is that I dont know how to stop step 2 from happening. I can avoid the deployment if in the script adding a check, but the step will have been executed and it will look in the deployment section that a new deployment has been perform.

I tried with a "condition", but it is not good, because my rules to deploy can not be defined with a simple changeset.

My only current idea is to use tags to handle the deploys.

Any other suggestions.

1 answer

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Nov 02, 2022

Hi Raul and welcome to the community!

I'm afraid that it is not possible to condition the execution of a step on anything other than a changeset at the moment. We have a feature request for what you are asking:

Since you'd be interested in that, I would suggest adding a comment and your vote to that feature request to further express your interest. You can also add yourself as a watcher if you'd like to get notified via email on updates.

In the meantime, apart from the ideas you already had, another suggestion I can make is to make this step manual by adding trigger: manual to the step. You can then manually trigger the second step if your condition is met. Please keep in mind though that if there is a third step after the second one, then the second one must complete in order for the third one to run.

Kind regards,
Theodora

Suggest an answer

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

Atlassian Community Events