Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Quality Gating

Is there a way to block code reviews if test conditions in the pipeline fail? This would make sure that the developer doesn't call a code review until they have addressed all issues in the automated testing stages.

2 answers

1 accepted

0 votes
Answer accepted

Hi @kanav002,

Thanks for clarifying. Currently it is not possible, via web interface, to block Crucible code reviews from being created or worked on if test conditions in the pipeline fail. 

If you create reviews from the command line though, it is possible to customize the Crucible Python script, making it check for these automated test results someway when it is executed (maybe via some REST API provided by your automation tool?), and block the code review creation if any of the automated tests have failed.

Just please bear in mind that customizations are not supported by Atlassian, so if you face any problems using the Crucible Python script after customizing it your best option is to ask for help in Atlassian Community website.

Regards,

Felipe

Thank you Felipe that was helpful!

Besides using customized scripts for gating, do you know if Atlassian supports any other services for CI/CD gating of code reviews? 

 

Nick

Hi Nick,

I believe Atlassian Bamboo is a great solution for that. With Bamboo you can checkout the repository source code, perform the automated tests and, if they are successful, run a script task that calls Crucible Python script in order to create the review.

Cheers,

Felipe 

Hi Felipe,

Thank you again! That was very helpful.

Nick

0 votes

Hi @kanav002,

This question was created in Fisheye/Crucible space but you have mentioned 'pipelines', which is a Bitbucket Cloud feature. 

Therefore, we would like to confirm if, by 'code reviews' you are referring to Crucible reviews or to Bitbucket pull requests.

Can you please clarify that?

Regards,

Felipe

Hi Felipe,

I was referring to Crucible reviews.

Thanks,

Nick

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Statuspage

New feature: Slack notifications for Statuspage

We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...

67 views 0 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you