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
Next: Root
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.
definitions:
steps-
step- #1
step- #2
wanna to skip step 2 according to condition
as theres no out of the box solution from atlassian, what i did was something like:
- step:
script:
- |
if something exists; then
echo true > condition.txt
fi
artifacts:
- condition.txt
- step:
script:
- |
if $(cat condition.txt); then
exit 0
fi
- do stuff
Hello,
Right now there isn't an option in the YAML to skip steps.
You could try marking the step as 'manual' if it's always going to be the last step, and just require it to be manually triggered.
Or you'll need to add your conditions to the start of the step. You can then just use 'exit 0' to finish the step early with a "successful" status and continue on with the pipeline.
You can also open a feature request for this here: https://jira.atlassian.com/secure/CreateIssue!default.jspa
Thanks,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also facing the same issue. I have raised a suggestion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.