You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2016/12/17 23:52:48 UTC
svn commit: r1774820 - /poi/trunk/jenkins/create_jobs.groovy
Author: kiwiwings
Date: Sat Dec 17 23:52:48 2016
New Revision: 1774820
URL: http://svn.apache.org/viewvc?rev=1774820&view=rev
Log:
add sonarqube job
Modified:
poi/trunk/jenkins/create_jobs.groovy
Modified: poi/trunk/jenkins/create_jobs.groovy
URL: http://svn.apache.org/viewvc/poi/trunk/jenkins/create_jobs.groovy?rev=1774820&r1=1774819&r2=1774820&view=diff
==============================================================================
--- poi/trunk/jenkins/create_jobs.groovy (original)
+++ poi/trunk/jenkins/create_jobs.groovy Sat Dec 17 23:52:48 2016
@@ -54,6 +54,8 @@ def poijobs = [
],
[ name: 'POI-DSL-no-scratchpad', trigger: triggerSundays, noScratchpad: true
],
+ [ name: 'POI-DSL-SonarQube', trigger: 'H 9 * * *', maven: true, sonar: true, disabled: true
+ ],
]
def svnBase = 'https://svn.apache.org/repos/asf/poi/trunk'
@@ -131,6 +133,11 @@ Apache POI - the Java API for Microsoft
abortBuild()
writeDescription('Build was aborted due to timeout')
}
+ if(poijob.sonar) {
+ configure { project ->
+ project / buildWrappers << 'hudson.plugins.sonar.SonarBuildWrapper' {}
+ }
+ }
}
jdk(jdkMapping.get(jdkKey))
scm {
@@ -168,7 +175,11 @@ Apache POI - the Java API for Microsoft
mkdir -p sonar/ooxml-schema-security/target/schemas && wget -O sonar/ooxml-schema-security/target/schemas/xmldsig-core-schema.xsd http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd
*/
maven {
- goals('package')
+ if(poijob.sonar) {
+ goals('compile $SONAR_MAVEN_GOAL -Dsonar.host.url=$SONAR_HOST_URL')
+ } else {
+ goals('package')
+ }
rootPOM('sonar/pom.xml')
mavenOpts('-Xmx2g')
mavenOpts('-Xms256m')
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org