We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d029c85 + d65ef01 commit bffea0aCopy full SHA for bffea0a
jenkinsfile-examples/sonarqube/Jenkinsfile
@@ -0,0 +1,10 @@
1
+node {
2
+ stage 'Checkout'
3
+
4
+ checkout scm
5
6
+ stage 'Gradle Static Analysis'
7
+ withSonarQubeEnv {
8
+ sh "./gradlew clean sonarqube"
9
+ }
10
+}
jenkinsfile-examples/sonarqube/README.md
@@ -0,0 +1,12 @@
+# Synopsis
+Demonstrate an example of a Jenkinsfile to analyze and send results to SonarQube.
+# Pre-requisites
+- [SonarQube Plugin 2.5](https://wiki.jenkins-ci.org/display/JENKINS/SonarQube+plugin)
+# Instructions
11
+- `Manage Jenkins` > `Configure System` and set up `SonarQube Servers`
12
+- Create a new `Pipeline` job and set the url for your `SCM`, which contains the Jenkinsfile.
0 commit comments