I want to complete the "SonarQube Scanner" step in my Jenkins 2.x pipe.
When I try to create a groovy sample in the pipeline syntax, I get only a groovy script in the following format:
step <object of type hudson.plugins.sonar.SonarRunnerBuilder>
Does anyone know what the correct Step syntax is? For instance. Post JUnit report looks like
step([$class: 'JUnitResultArchiver', testResults: ''])
I use the following versions:
- Jenkins 2.11
- SonarQube Scanner 2.6.1
- SonarQube 2.4.1 Plugin
source
share