java - How to do sonar job separately in jenkins for maven 3 project -
i configuring sonar plug-in in jenkins execute on maven 3 projects.
currently maven project scheduled build when code change in svn , every 2hrs
now want run sonar on same project once in night time, should not impact regular builds.
i installed jenkins sonar plugin , able add sonar in 'post build actions' of project configuration, , build fine. in case sonar running each time after project build done, want run sonar @ night time.
in approach did not included sonar maven plugin in pom file, since want use jenkins sonar plugin
please let me know changes need pom end , jenkins end.
the cleanest solution create dedicated jenkins job schedule sonarqube analysis. users using trigger configuration "skip if environment variable defined , set true" reach such goal.
Comments
Post a Comment