Created attachment 34532 [details] Add a sonar task to build It would be nice to add sonar analysis to the build script. The attached patch adds sonarqube-ant-task and another "complete" junit - enhanced with coverage - task to the build script. It would be nice to use the already implemented coverage functionality, but I have to admit, that I don't know how to activate it. The new task can be used with a local sonarqube installation running in default configuration, or it can use environment variables to point to a custom installation. The environment variables are: SONAR_HOST_URL SONAR_LOGIN SONAR_PASSWORD SONAR_JDBC_URL SONAR_JDBC_USERNAME SONAR_JDBC_PASSWORD
Created attachment 34533 [details] Add sonar task to build Move jmeter.version on level up, so that sonar task can use it. Change sonarKey to begin with org.apache.jmeter
Date: Sun Dec 18 11:12:17 2016 New Revision: 1774875 URL: http://svn.apache.org/viewvc?rev=1774875&view=rev Log: Add sonar analysis task to build Bugzilla Id: 60494 Modified: jmeter/trunk/build.properties jmeter/trunk/build.xml jmeter/trunk/test/src/org/apache/jmeter/JMeterVersionTest.java jmeter/trunk/xdocs/changes.xml
Date: Sun Dec 18 11:57:53 2016 New Revision: 1774880 URL: http://svn.apache.org/viewvc?rev=1774880&view=rev Log: Move definition of sonar namespace to sonar task, so that it works, even when sonar lib was just downloaded. Bugzilla Id: 60494 Modified: jmeter/trunk/build.xml
Thanks a lot Felix for your work on this ! It's great. For reference, how did you make the Jenkins configuration ? I see you added a call to "sonar" task (https://builds.apache.org/view/All/job/JMeter-trunk/configure) in build. But I don't see where you configured all the env properties. Is it injected with "Prepare environnement for SonarQube Scanner" checkbox ? Is there some documentation you relied on ? Thank you