summaryrefslogtreecommitdiffstats
path: root/jenkins
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2018-12-28 11:17:57 +0000
committerDominik Stadler <centic@apache.org>2018-12-28 11:17:57 +0000
commit0e8d437a300b9b8aa83930d1e6d4544d2155afaa (patch)
tree1da74b969a12de1989eb279a3a10565df6a80fb5 /jenkins
parent825418d520c46cc8e3109cd599eac34da192ef5a (diff)
downloadpoi-0e8d437a300b9b8aa83930d1e6d4544d2155afaa.tar.gz
poi-0e8d437a300b9b8aa83930d1e6d4544d2155afaa.zip
Add XMLBeans jobs for JDK 8 and 11.
Add initial version of Jenkins DSL for the Github-PullRequest build-job git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849838 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'jenkins')
-rw-r--r--jenkins/create_jobs.groovy47
1 files changed, 41 insertions, 6 deletions
diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy
index 3a75bc047a..ccaa795029 100644
--- a/jenkins/create_jobs.groovy
+++ b/jenkins/create_jobs.groovy
@@ -97,10 +97,17 @@ def poijobs = [
],
[ name: 'POI-DSL-Windows-1.8', trigger: 'H */12 * * *', windows: true, slaves: 'Windows'
],
+ [ name: 'POI-DSL-Github-PullRequests', trigger: '', githubpr: true, skipcigame: true,
+ disabled: true // not fully functional yet, thus disable it for now
+ ],
]
def xmlbeansjobs = [
- [ name: 'POI-XMLBeans-DSL-1.6', jdk: '1.6', trigger: 'H */12 * * *', skipcigame: true
+ [ name: 'POI-XMLBeans-DSL-1.6', jdk: '1.6', trigger: 'H */12 * * *', skipcigame: true,
+ ],
+ [ name: 'POI-XMLBeans-DSL-1.8', jdk: '1.8', trigger: triggerSundays, skipcigame: true,
+ ],
+ [ name: 'POI-XMLBeans-DSL-1.11', jdk: '1.11', trigger: triggerSundays, skipcigame: true,
]
]
@@ -250,15 +257,43 @@ poijobs.each { poijob ->
}
jdk(jdkMapping.get(jdkKey))
scm {
- svn(svnBase) { svnNode ->
- svnNode / browser(class: 'hudson.scm.browsers.ViewSVN') /
- url << 'http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN'
+ if (poijob.githubpr) {
+ git {
+ remote {
+ github('apache/poi')
+ refspec('+refs/pull/*:refs/remotes/origin/pr/*')
+ }
+ branch('${sha1}')
+ }
+ } else {
+ svn(svnBase) { svnNode ->
+ svnNode / browser(class: 'hudson.scm.browsers.ViewSVN') /
+ url << 'http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN'
+ }
}
}
checkoutRetryCount(3)
- triggers {
- scm(trigger)
+ if (poijob.githubpr) {
+ parameters {
+ gitParam('sha1') {
+ description('Pull request')
+ type('BRANCH')
+ }
+ }
+ triggers {
+ githubPullRequest {
+ admins(['centic9', 'poi-benchmark', 'tballison', 'gagravarr', 'onealj', 'pjfanning', 'Alain-Bearez'])
+ userWhitelist(['centic9', 'poi-benchmark', 'tballison', 'gagravarr', 'onealj', 'pjfanning', 'Alain-Bearez'])
+ orgWhitelist(['apache'])
+ cron('H/5 * * * *')
+ triggerPhrase('OK to test')
+ }
+ }
+ } else {
+ triggers {
+ scm(trigger)
+ }
}
def shellcmds = (poijob.windows ? shellCmdsWin : shellCmdsUnix).replace('POIJOBSHELL', poijob.shell ?: '')