diff options
author | Dominik Stadler <centic@apache.org> | 2017-03-10 20:13:46 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2017-03-10 20:13:46 +0000 |
commit | 781e5968585d8bbcf229c7eda52e89b798a1b388 (patch) | |
tree | 6590f7e1f1c2fd58f92f8d47cf95f2369bac4791 /jenkins/create_jobs.groovy | |
parent | 1a89372168fe71058c9c6ddecc510f27bfbb27e6 (diff) | |
download | poi-781e5968585d8bbcf229c7eda52e89b798a1b388.tar.gz poi-781e5968585d8bbcf229c7eda52e89b798a1b388.zip |
Allow to enable Sonar as part of the Gradle build and add Jenkins DSL job to test it
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1786430 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'jenkins/create_jobs.groovy')
-rw-r--r-- | jenkins/create_jobs.groovy | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index c18fd7e387..c52c1c5d0d 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -63,6 +63,8 @@ def poijobs = [ ], [ name: 'POI-DSL-SonarQube', jdk: '1.8', trigger: 'H 9 * * *', maven: true, sonar: true ], + [ name: 'POI-DSL-SonarQube-Gradle', jdk: '1.8', trigger: 'H 9 * * *', gradle: true, sonar: true, skipcigame: true + ], ] def svnBase = 'https://svn.apache.org/repos/asf/poi/trunk' @@ -244,6 +246,24 @@ for more details about the DSL.</b> } mailer(email, false, false) } + } else if(poijob.sonar) { + steps { + shell(shellcmds) + gradle { + switches('-PenableSonar') + switches('-PsystemProp.sonar.host.url=$SONAR_HOST_URL') + tasks('sonarqube') + useWrapper(false) + } + } + publishers { + if (!poijob.skipcigame) { + configure { project -> + project / publishers << 'hudson.plugins.cigame.GamePublisher' {} + } + } + mailer(email, false, false) + } } else { steps { shell(shellcmds) |