Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6324919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:47:48+00:00 2026-05-24T16:47:48+00:00

I am using SVN as a version management tool for my project, and am

  • 0

I am using SVN as a version management tool for my project, and am planning to use sonar for project analysis.

How do I make sonar project analysis run every time code is checked into SVN?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:47:49+00:00Added an answer on May 24, 2026 at 4:47 pm

    Do not do complex stuff as a pre-commit hook! When a user does a commit, control does not return to the user until after the pre-commit hook has completed. Since Sonar has to compile your code, your users will have to wait on every commit for the following:

    • Checking out the code
    • Compiling the code
    • Running all of the tests and checks that Sonar performs
    • Waiting for Sonar to complete its reporting and updating its database

    How long will all of this take? 10 minutes? 20 minutes? 5 minutes? Let’s assume that your code is small or your compiler is very fast, so it takes a mere 4 minutes. Do your users want to wait 4 minutes each and every time they perform a commit in order to start their work again?

    Instead, get a continuous build server like Jenkins. Jenkins is fast and simple to setup. It’s a simple *.war file. You simply run:

    $ java -jar jenkins.war
    

    And, you’re up and running. Once Hudson is up, you define a “job”. Just enter in the required information, and save. Every time, someone does a commit in Subversion, Hudson will build in the background.

    Where all the fun comes in are the dozens (and maybe hundreds) of third party plugins that can extend Jenkins. For example, there’s a Sonar plugin that will run your Sonar tasks, update your database, and produce some nice looking reports.

    If there are problems, Jenkins will email the person responsible and the entire development team. (Plugins allow Jenkins to IM, Tweet, and even change a stoplight from green to red). This immediate feedback and public knowledge will get your developers to do their own tests before doing a commit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been using Tourtist-SVN locally on a project for version control of my code.
I've got a project running and we're using SVN as the version control. There
I'm using svn for the first time, to maintain a custom version of Wordpress.
I have a framework based project that I'm using SVN to version control. I
I am using SVN for source code management on a Classic ASP app that
I'm new to SVN. I'm using the latest version (svn 1.6.9, TortoiseSVN 1.6.7.18415). Some
I'm using Git for version control and unlike SVN I have not come across
I'm using ant to build my project, and use the 'svnversion' executable to insert
hellow all i am using svn for version control for an iphone application .
I have been using svn:externals to bring the Zend Framework files into my project.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.