Hi All!

Has anyone manage to get SonarQube Scanner and Quality Gateway working
in a Declarative Pipeline? I'm actually stuck with that, because the
only examples on both Jenkins and SonarQube docs are examples for the
scripted pipeline, not declarative one...


SonarQube document:
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins
Jenkins document: https://jenkins.io/doc/pipeline/steps/sonar/


Both examples are for scripted pipeline (documentation bug/lint?) and
neither of them explains what is actually necessary inside the block
withSonarQubeEnv{} and how to start the scanner (which is located on the
agent in the 'tools' subfolder. Even more — Jenkins does not recognize
withSonarQubeEnv{} as 'step' at all :(


I think one working example would be enough to understand... To add
another 5 cents, I have to pass extra -Xms and -Xmx parameters to the
scanner, otherwise it crashes with OOM (I tested it in a 'freestyle' job).


Cheers,
Kirill

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/318625e3-6f19-9818-6a23-9ed4edd5add2%40paranoid.email.
For more options, visit https://groups.google.com/d/optout.

Reply via email to