The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to gracefully skip deployment without marking the deployment as successful?

Abdillah
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!
October 26, 2023

BitBucket deployment correlates with JIRA card. So, when deploy using pipeline, the card status reflects the step failure/successful result. On the other hand, I need a way to skip deployment altogether, because some commits' requirement (e.g. incomplete commits).

 

By exiting with `exit -1`, this will stop the pipeline entirely. By exiting with `exit 0` it marked the deployment as successful. How to skip this deployment and take a middle road to still continue the pipeline AND marked the deployment step as skip?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 30, 2023

Hi @Abdillah,

I'm afraid that this is not possible at the moment. A pipeline step needs to be completed successfully for the next steps to be executed.

We have a feature request for what you are asking:

You can see here the latest update by one of Bitbcuket's Product Managers regarding this feature:

You can add your vote to this feature request to express your interest and you can also add yourself as a watcher if you'd like to be notified via email on updates.

In the meantime, one thing you could do is create a separate custom pipeline for each deployment environment and execute the one(s) you want manually:

Please feel free to reach out if you have any questions.

Kind regards,
Theodora

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events