Auto create a Review from Perforce

Marek Gimza May 17, 2012

Is the following possible, or is there aplugin that already supports this process?

1. The user checks out some files into a Pending changelist in Perforce.

2. The user then selects a Perforce custom tool to start a review on the Affected files in the Pending changelist.

3. The tool sends a request to Crucible to create a Review and automatically add the Affected files in the Pending changelist to the Review.

4. The tool will then send a request to the crucible server to add a list of reviewers to the review. The reviewers will be a comma seperated list of usernames.

The reviewers will be automatically added to the newly created review.

The request in step 4, could be part of the same request to the crucible server as in step 3.

3 answers

1 vote
Marek Gimza May 18, 2012

Thanks for the reply Cameron.

This idea though unfortunately is not adequate as :

1. P4 triggers only work on the server and not the client

2. The checked out files that contain the changes for review are only in the local workspace to which the server has no knowledge.

To use this strategy developers would have to use the 'p4 shelve' feature which is not part of our Dev Process!

Thanks :)

1 vote
Marek Gimza May 17, 2012

There is the REST API that provides the support to send the appropriate requests to the server.

It is documented under the Atlassian Developer section under the REST API Guilde:

https://developer.atlassian.com/display/FECRUDEV/FishEye+and+Crucible+Developer+Documentation

...

Marek G

0 votes
Cameron Ferguson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 17, 2012

You could also use the Atlassian Command Line Interface with your python triggers in perforce to create the review.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events