Devart Blog

Integrating Review Assistant with Jenkins

Posted by on February 6th, 2014

Summary: This article contains information on how to integrate the Review Assistant code review tool into Jenkins by using MSBuild target.

This is the third article in a series of Integration Review Assistant with Continuous Integration Systems. Read the Integrating Review Assistant with MSBuild and Integrating Review Assistant with CCNet articles to get an additional information about the integration with continuous integration systems.

Setting Up Jenkins to Work with MSBuild

We will use the CheckRejectedReviews MSBuild target. The Integrating Review Assistant with MSBuild article describes its declaration process. Assume that you have already configured Jenkins to work with MSBuild continuous integration system. If so, you need to do the following:

  1. Open the project settings, click Add Build Setup, and then select Build a Visual Studio project or solution using MSBuild.
  2. In the MSBuild Build File text box, type the path to the MSBuils.xml project file.
  3. In the Command Line Arguments text boox, add /target:CheckRejectedReviews.
Jenkins build step settings

Jenkins build step settings

After this, Jenkins will show the warning message if during a specified period of time there have been reviews with the “Rejected” status.
Optionally you can mark the build as unstable rather than stop it. For this, call the Warning task instead of the Error task:

 

In the project settings, click Advanced, and select If warnings set the build to Unstable.

Jenkins advanced build step settings

Jenkins advanced build step settings

Conclusion

We’ve shown you an example of how you can integrate Review Assistant with Jenkins. Start using Review Assistant for free today.

One Response to “Integrating Review Assistant with Jenkins”

  1. Setting Up Review Assistant CCNet Integration Says:

    […] with Continuous Integration Systems. Read the Integrating Review Assistant with MSBuild and Integrating Review Assistant with Jenkins articles to get an additional information about the integration with continuous integration […]

Leave a Reply