Integration with Jenkins and Jira

667 views
Skip to first unread message

Gong Zhang

unread,
Feb 10, 2014, 9:53:45 AM2/10/14
to revie...@googlegroups.com
Hi,

I noticed there`s an extension in Jenkins which can integrate with ReviewBoard(https://wiki.jenkins-ci.org/display/JENKINS/Reviewboard+Plugin), do you have any ideas about this extension? It seems out of date and supports ReviewBoard V1.5, does it work now for V 1.7? Any suggestions will be grateful! And BTW, is there any extensions that integrate with Jira? My team is using Jira as the bug tracking tool, it will be great if we can have Jira, Jenkins and ReviewBoard together! Thanks!

Best

MoonWalker

unread,
Feb 10, 2014, 10:10:36 PM2/10/14
to revie...@googlegroups.com
I use JIRA  and the only stuff that I am a aware of,  is that you can link your Bug # ( Reviewboard) with your JIRA issue #. You will be able to click on the reviewboard  Bug # and a webpage with the JIRA ticket number will be open. In your reviewboard page you have to  Admin->Repositories->pick your repository  
1) look for bug tracker 
2) Type = Custom bug tracker
3) Bug tracker URL: http://myJIRA1:8080/browse/%s

David Trowbridge

unread,
Feb 11, 2014, 12:03:56 AM2/11/14
to reviewboard
We currently have a student working on integrating JIRA (and other bug trackers) better with Review Board. If you have specific integration points you'd like, he started a thread asking for community input: https://groups.google.com/forum/#!topic/reviewboard/DymDgBu_9_Q

I wasn't aware of the Jenkins plugin. It looks like it's meant to push changes up to Review Board, which is often done using post-commit hooks. Glancing through the source, it looks like it uses the 'post-review' binary to post the changes, which means it should work with modern review board releases, but 'post-review' is deprecated (in favor of 'rbt post') and will be going away in 0.6.

What I think most people want from "Jenkins integration" is something that would use Jenkins to run automated builds and tests on prospective changes. That doesn't currently exist, afaik.

-David


--
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Heinz Wiesinger

unread,
Feb 11, 2014, 2:52:08 AM2/11/14
to revie...@googlegroups.com
There is such a plugin for Jenkins that uses ReviewBot, but I haven't tested
it myself so not sure how well it works: https://github.com/vmware/jenkins-reviewbot

Grs,
Heinz
signature.asc

Raja

unread,
Feb 11, 2014, 3:49:48 AM2/11/14
to revie...@googlegroups.com
On Tue, Feb 11, 2014 at 10:33 AM, David Trowbridge <trow...@gmail.com> wrote:

What I think most people want from "Jenkins integration" is something that would use Jenkins to run automated builds and tests on prospective changes. That doesn't currently exist, afaik.

I did something couple months ago that invokes certain(Predefined) commands on a remote box whenever a review is posted. The commands could be anything, be it a Jenkins-CLI call or phpunit as in my case (Running phpunit on jenkins to make sure that the patch in the review attached  passes all tests). 


Basically , it uses ReviewBot to get notified of a patch published, then runs a Reviewbot plugin to execute remote commands and then uses ReviewBot back to publish the status of reports. 

The plugin is based on Reviewboard 1.7.x but hasnt been tested yet on 2.x .

Regards
Raja



--
Raja
rajasaur at gmail.com

Gong Zhang

unread,
Feb 11, 2014, 9:13:33 AM2/11/14
to revie...@googlegroups.com
Hi Raja,

I tried with ReviewBot, it did work with the build part, and it also should notify the ReviewBoard after a build is done which did not work well. Any idea about that? Should I change some privileges on ReviewBoard? Thanks!

Gong Zhang

unread,
Feb 11, 2014, 9:23:27 AM2/11/14
to revie...@googlegroups.com
That`s more than helpful! Thank you!

Gong Zhang

unread,
Feb 11, 2014, 9:25:05 AM2/11/14
to revie...@googlegroups.com
I tired with it, although there may little problems, it indeed works.

Raja

unread,
Feb 11, 2014, 9:29:44 AM2/11/14
to revie...@googlegroups.com
On Tue, Feb 11, 2014 at 7:43 PM, Gong Zhang <zhangs...@gmail.com> wrote:
Hi Raja,

I tried with ReviewBot, it did work with the build part, and it also should notify the ReviewBoard after a build is done which did not work well. Any idea about that? Should I change some privileges on ReviewBoard? Thanks!

 
You might want to check if there are Exceptions in the "execute" method of your plugin. If there are exceptions, nothing gets published. You might also want to debug the celery process (http://docs.celeryproject.org/en/latest/reference/celery.contrib.rdb.html) to know where it is skipping the publish process.

Regards
Raja


Message has been deleted

Raja

unread,
Feb 11, 2014, 9:46:02 AM2/11/14
to revie...@googlegroups.com
Are you running ReviewBot from the command line? If so, the logs should be printed onto the terminal window. 


On Tue, Feb 11, 2014 at 8:08 PM, Gong Zhang <zhangs...@gmail.com> wrote:
Do you know if there`s a logger for reviewbot? I want to get the running logs of reviewbot. Thanks!

--
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Gong Zhang

unread,
Feb 11, 2014, 10:06:27 AM2/11/14
to revie...@googlegroups.com
Hi I am getting this errors now, any idea why? I did follow every step in the instruction.
Preemptive authentication requested but no default credentials available
Feb 11, 2014 9:51:13 AM INFO org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
basic authentication scheme selected
Feb 11, 2014 9:51:13 AM INFO org.apache.commons.httpclient.HttpMethodDirector processWWWAuthChallenge
Failure authenticating with BASIC 'Web API'@xx.xx.12.159:81
Reply all
Reply to author
Forward
0 new messages