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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Blocking commits using svn and crucible until it get reviewed

Is there any possibility to block SVN commits until it get reviewed and approved by Atlassian Crucible code reviewers ? I want to do something similar to Gerrit but using SVN, i heard that it can't be done with centralized control version systems, if it were for me i'd rather move to Git, but is there some alternative solution ?

1 answer

1 accepted

1 vote
Answer accepted

Hi Marouan,

I thought about creating a pre-commit patch review and then making the SVN pre-commit hook call this REST resource using cURL / wget in order to search for reviews which include a particular file from the pre-commit patch, iterate over the results, and then:

  1. If a review is returned, check if its status is Closed. 
    1. If it's not Closed, block the commit.
    2. If it's Closed, allow the commit.
  2. If no reviews are returned, block the commit.

I believe this would work perfectly to you, but while investigating this I've discovered that the REST resource does not return reviews based on files from pre-commit patches. It only returns reviews based on revisions that have already been committed.

I have created an improvement request in our development issue tracker in order to make that REST resource include reviews based on files from pre-commit patches:

https://jira.atlassian.com/browse/CRUC-7198

Feel free to vote for the issue and/or leave a comment to describe your use-case in more detail. It will help our development team to build a solution that meets your needs.

If you want to know more about how we prioritise feature requests, take a look at our policy.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,
Felipe Kraemer

Thanks for your answer ! So is it possible to use the Crucible Review CLI tool to block commits by developers and send the diff to Crucible review instead ?

Suggest an answer

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

Building a powerful Kanban dashboard in Jira with Great Gadgets app

Kanban is a popular agile framework suitable for both operations and development teams. It does not matter if you are a support team handling issues reported by customers, an internal service desk te...

56 views 0 0
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