From: Dominik Stadler Date: Sun, 27 Nov 2016 11:06:48 +0000 (+0000) Subject: Add initial Jenkins Job DSL to version-control the Jenkins jobs X-Git-Tag: REL_3_16_BETA2~296 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=470a17ad436f604cf4c569bb38a5b253f30ac5b2;p=poi.git Add initial Jenkins Job DSL to version-control the Jenkins jobs git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1771562 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy new file mode 100644 index 0000000000..215bcddbd6 --- /dev/null +++ b/jenkins/create_jobs.groovy @@ -0,0 +1,201 @@ +// You can use http://job-dsl.herokuapp.com/ to validate the code before checkin +// +def svnBase = "https://svn.apache.org/repos/asf/poi/trunk" +job('POI-DSL-Test') { + description('\n' + +'

\n' + +'Apache POI - the Java API for Microsoft Documents\n' + +'

\n' + +'

\n' + +' Findbugs report of latest build -\n' + +' Sonar reports -\n' + +' Coverage of latest build\n' + +'

\n') + logRotator(numToKeep = 5, artifactNumToKeep = 1) + label('ubuntu&&!cloud-slave') + jdk('JDK 1.6 (latest') + scm { + svn(svnBase) { svnNode -> + svnNode / browser(class: 'hudson.scm.browsers.ViewSVN') / + url << 'http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN' + } + } + triggers { + scm('H/15 * * * *') + } + steps { + shell('# show which files are currently modified in the working copy\n' + +'svn status\n' + +'\n' + +'# ignore any error message\n' + +'exit 0') + ant { + targets(['clean', 'jenkins']) + prop('coverage.enabled', true) + antInstallation('Ant (latest)') + } + ant { + prop('logging', 'info') + buildFile('src/integrationtest/build.xml') + antInstallation('Ant (latest)') + } + } +} + +/* + + + + + low + [FINDBUGS] + + false + false + false + false + + + + + + + + + + + + + + + + + + + false + true + false + build/findbugs.xml + false + + + + + + + low + [WARNINGS] + + false + false + false + false + + + + + + + + + + + + + + + + + + + false + true + false + + + + + + Java Compiler (javac) + + + JavaDoc Tool + + + + + build/dist/*.tar.gz,build/findbugs.html,build/coverage/**,build/integration-test-results/**,ooxml-lib/** + false + false + false + true + true + + + build/ooxml-test-results/*.xml,build/scratchpad-test-results/*.xml,build/test-results/*.xml,build/excelant-test-results/*.xml,build/integration-test-results/*.xml + false + + + + 1.0 + false + + + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + build/*.exec + build/classes,build/examples-classes,build/excelant-classes,build/ooxml-classes,build/scratchpad-classes + src/java,src/excelant/java,src/ooxml/java,src/scratchpad/src + + com/microsoft/**,org/openxmlformats/**,org/etsi/**,org/w3/**,schemaorg*/**,schemasMicrosoft*/**,org/apache/poi/hdf/model/hdftypes/definitions/*.class,org/apache/poi/hwpf/model/types/*.class,org/apache/poi/hssf/usermodel/DummyGraphics2d.class,org/apache/poi/sl/draw/binding/*.class + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + false + + + + dev@poi.apache.org + false + false + + + + + + LANG=en_US.UTF-8 + false + + + + + 180 + + + + + + + +*/