summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorArnaud Fabre <fabre.arnaud@gmail.com>2013-03-22 21:13:56 +0100
committerJenkins <jenkins@review.openstack.org>2013-03-25 10:19:08 +0000
commita164f01f4abdd93a310428f5cbe4feccec4b6d0a (patch)
tree6e5479dadd72b95fc801ae52ecd9fe58e56d9b5f /samples
parent1c0b7308c83680fb259ea15518e4426198b9f99a (diff)
downloadpython-jenkins-job-builder-a164f01f4abdd93a310428f5cbe4feccec4b6d0a.tar.gz
python-jenkins-job-builder-a164f01f4abdd93a310428f5cbe4feccec4b6d0a.tar.xz
python-jenkins-job-builder-a164f01f4abdd93a310428f5cbe4feccec4b6d0a.zip
Add Sonar Plugin support.
The Sonar Plugin provides both a builder and a publisher, the later targeting Maven projects. This commit adds support for the publisher, which is straightforward to configure: no option is required, the plugin finds suitable defaults by itself. Several parameters can be provided though, which are transferred as is to either Sonar or Maven. Analysis can also be skipped under certain conditions. Change-Id: I30744d0961d623cabf7c0780ab2f0d4db2cd9295 Reviewed-on: https://review.openstack.org/25073 Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Approved: Monty Taylor <mordred@inaugust.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Tested-by: Jenkins
Diffstat (limited to 'samples')
-rw-r--r--samples/sonar.yaml13
1 files changed, 13 insertions, 0 deletions
diff --git a/samples/sonar.yaml b/samples/sonar.yaml
new file mode 100644
index 00000000..8cb675bb
--- /dev/null
+++ b/samples/sonar.yaml
@@ -0,0 +1,13 @@
+- job:
+ name: test-sonar
+ publishers:
+ - sonar:
+ jdk: MyJdk
+ branch: myBranch
+ language: java
+ maven-opts: -DskipTests
+ additional-properties: -DsonarHostURL=http://example.com/
+ skip-global-triggers:
+ skip-when-scm-change: true
+ skip-when-upstream-build: true
+ skip-when-envvar-defined: SKIP_SONAR