File | Date | Author | Commit |
---|---|---|---|
src | 2019-06-15 |
![]() |
[e5ce6a] Add files via upload |
README.md | 2019-06-15 |
![]() |
[5e42ff] Update README.md |
pom.xml | 2019-06-15 |
![]() |
[e5ce6a] Add files via upload |
Command line tool for SonarQube Results
Steps To Run & Export The Excel:
Run following maven command
mvn -q clean compile exec:java -Dexec.mainClass="in.flyspark.sonarqube.exporter.controller.Exporter" -Dexec.args="http://localhost:9000/ da5ad9e667faf116e42a8aadfb33d0b64f45bd99 JavaScriptKey JS_Project_Report v1.0.0.0"
Here -Dexec.args are:
1. Host/ip running SonarQube instance (Ex. http://localhost:9000/)
2. Token generated in SonarQube admin panel (Ex. da5ad9e667faf116e42a8aadfb33d0b64f45bd99, visit http://localhost:9000/account/security/)
3. Project Key of targeted project (Ex. JavaScriptKey, visit http://localhost:9000/admin/projects_management)
4. Project Name (Ex. - JS_Project_Report, This name is of your choice, used for name of excel file and inside excel sheets)
5. Version of excel file (Ex. v.1.0, v1.0.0.0, vLatestVersion, FreeText, v1.0.0.0_16_06_2019, etc)
Replace -Dexec.args arguments with your respective values.
Format of Maven Command:
Path_To_Root_Dir>mvn -q clean compile exec:java -Dexec.mainClass="in.flyspark.sonarqube.exporter.controller.Exporter" -Dexec.args="1.Host 2.Token 3.ProjectKey 4.ProjectName(Name of your choice) 5.Version(Ex - v.1.0 , v1.0.0.0 , freetext)"
Example:
Path_To_Root_Dir>mvn -q clean compile exec:java -Dexec.mainClass="in.flyspark.sonarqube.exporter.controller.Exporter" -Dexec.args="http://localhost:9000/ da5ad9e667faf116e42a8aadfb33d0b64f45bd99 JavaScriptKey JS_Project_Report v1.0.0.0"