You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.