From 5e0af612b6e406a9c3d722323b5b8e8cf1128d4c Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Sun, 27 Nov 2016 11:06:48 +0000 Subject: [PATCH] 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 --- jenkins/create_jobs.groovy | 201 +++++++++++++++++++++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 jenkins/create_jobs.groovy diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy new file mode 100644 index 000000000..215bcddbd --- /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 + + + + + + + +*/