Hi,In fact, I would like to have a checkbox when I clic on the launch build button to choose if I want to have or not a sonar analysis.As mention in my screenshot, the skipSonarQube variable is injected via a boolean parameter in the job configuration.Please could you give some screenshots to configure my jenkins build job to have the best configuration ? I don't understand how to configure it as a build step that will not start the analysis.What is the best way to have in one job maven build + sonar analysis ? Is it to have two different job ? Is it a best way to have sonar analysis for each commit ?I don't find a very usefull example in the documentation.Thank you very much.Best regards,
Le mardi 31 janvier 2017 18:17:20 UTC+1, G. Ann Campbell a écrit :
Hi,As I understand it, you want to skip analysis if the compilation fails. That makes sense to me. What doesn't make sense is why you want to run analysis as a post build step. If you do it as a build step, it should automatically be skipped if compilation fails. Or am I mis-remembering my Jenkins functionality?Regarding the conditionality of the analysis:* I don't see how your skipSonarQube variable comes into the mix (nor how it's set to false if compilation fails)* Whether or not your "Run only if build succeeds" post step is executing as expected is really not a question of SonarQube Scanner for Jenkins functionality, but of that post step* The Post Build analysis Action is, as you noted, deprecated, so we won't be investigating the question of the analysis icon in the build list.
Hello,I have an issue with the latest SonarQube plugin for Jenkins. I am unable to ignore the execution of the SonarQube Server with boolean parameter set in my project configuration.I am using Jenkins 2.42 and I have the SonarQube plugin 2.5. and my sonarqube server is 6.2I follow this documentation the configure my SonarQube server in Jenkins : https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins#AnalyzingwithSonarQubeScannerforJenkins-ConfiguringaSonarQubeScannerusingenvironmentvariablesHere is my config in jenkins :
And here my project configuration :
And with this configuration always SonarQube analysis is launched.The only way to have this functionnality is to used the deprecated method like this :
And another point is that with the deprecated option launch after the build when the analysis is skipped the resume is wrong because I can see the icon of sonar in the build queue :
Please could investigate this point ?Or is it impossible to lauch sonar analysis with boolean parameter in a build ?In advance, thank you very much for your help about this problem.Best regards.
--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/mtEOM0dKWR4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/0cf052bf-bc7b-421b-b9c6-570e5d3e08b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.