aboutsummaryrefslogtreecommitdiffstats
path: root/jenkins/create_jobs.groovy
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2020-08-16 09:51:23 +0000
committerAndreas Beeker <kiwiwings@apache.org>2020-08-16 09:51:23 +0000
commit0ce32248c0aef1c69d1017d7353b5b419ebdb8b1 (patch)
treed41466850a73587bff8f4e8ed068e0329db045b3 /jenkins/create_jobs.groovy
parent393301b8b5495873639d03a55ac3ba6edf5ad513 (diff)
downloadpoi-0ce32248c0aef1c69d1017d7353b5b419ebdb8b1.tar.gz
poi-0ce32248c0aef1c69d1017d7353b5b419ebdb8b1.zip
Migrate JOB DSL to new Jenkins environment ci-builds.apache.org
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1880889 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'jenkins/create_jobs.groovy')
-rw-r--r--jenkins/create_jobs.groovy42
1 files changed, 25 insertions, 17 deletions
diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy
index 11f136af05..63d87b021f 100644
--- a/jenkins/create_jobs.groovy
+++ b/jenkins/create_jobs.groovy
@@ -60,7 +60,7 @@ def poijobs = [
email: 'kiwiwings@apache.org'
],
[ name: 'POI-DSL-SonarQube-Gradle', trigger: 'H 9 * * *', gradle: true, sonar: true, skipcigame: true,
- disabled: true // this one does run, but does not actually send data to Sonarqube for some reason, we need to investigate some more
+ disabled: true // this one does run, but does not actually send data to Sonarqube for some reason, we need to investigate some more
],
[ name: 'POI-DSL-Windows-1.8', trigger: 'H */12 * * *', windows: true, slaves: 'Windows'
],
@@ -79,7 +79,7 @@ def poijobs = [
def xmlbeansjobs = [
[ name: 'POI-XMLBeans-DSL-1.6', jdk: '1.6', trigger: 'H */12 * * *', skipcigame: true,
- disabled: true // XMLBeans does not support Java 6 any more
+ disabled: true // XMLBeans does not support Java 6 any more
],
[ name: 'POI-XMLBeans-DSL-1.8', jdk: '1.8', trigger: 'H */12 * * *', skipcigame: true,
],
@@ -213,7 +213,7 @@ poijobs.each { poijob ->
def slaves = poijob.slaves ?: defaultSlaves + (poijob.slaveAdd ?: '')
def antRT = poijob.windows ? defaultAntWindows : defaultAnt
- job(poijob.name) {
+ job('POI/' + poijob.name) {
if (poijob.disabled) {
disabled()
}
@@ -233,6 +233,7 @@ poijobs.each { poijob ->
}
env('FORREST_HOME', poijob.windows ? 'f:\\jenkins\\tools\\forrest\\latest' : '/home/jenkins/tools/forrest/latest')
}
+
wrappers {
timeout {
absolute(180)
@@ -287,13 +288,14 @@ poijobs.each { poijob ->
stringParam('sha1', 'origin/pr/9/head', 'Provide a branch-spec, e.g. origin/pr/9/head')
}
triggers {
- githubPullRequest {
+ pullRequestBuildTrigger()
+ /*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 {
@@ -446,7 +448,7 @@ poijobs.each { poijob ->
publishers {
recordIssues {
tools {
- spotbugs {
+ spotBugs {
pattern('build/findbugs.xml')
reportEncoding('UTF-8')
}
@@ -477,6 +479,16 @@ poijobs.each { poijob ->
mailer(email, false, false)
}
}
+
+
+ if (poijob.githubpr) {
+ configure {
+ it / 'properties' << 'com.cloudbees.jenkins.plugins.git.vmerge.JobPropertyImpl'(plugin: 'git-validated-merge') {
+ credentialsId('ASF_Cloudbees_Jenkins_ci-builds')
+ postBuildPushFailureHandler(class: 'com.cloudbees.jenkins.plugins.git.vmerge.pbph.PushFailureIsFailure')
+ }
+ }
+ }
}
}
@@ -487,7 +499,7 @@ xmlbeansjobs.each { xjob ->
def slaves = xjob.slaves ?: defaultSlaves + (xjob.slaveAdd ?: '')
def antRT = xjob.windows ? defaultAntWindows : defaultAnt
- job(xjob.name) {
+ job('POI/' + xjob.name) {
if (xjob.disabled) {
disabled()
}
@@ -574,9 +586,9 @@ Add a special job which spans a two-dimensional matrix of all JDKs that we want
all slaves that we would like to use and test if the java and ant binaries are available
on that machine correctly.
*/
-matrixJob('POI-DSL-Test-Environment') {
+matrixJob('POI/POI-DSL-Test-Environment') {
description(
-'''Check installed version of Java/Ant on all build-nodes
+ '''Check installed version of Java/Ant on all build-nodes
This job is used to verify which machines actually have the required programs installed.
@@ -601,11 +613,7 @@ Unfortunately we often see builds break because of changes/new machines...''')
'JDK 14 (latest)',
'JDK 15 (latest)'
)
- elasticAxis {
- name('Nodes')
- labelString('!cloud-slave&&!H15&&!H17&&!H18&&!H24&&!ubuntu-4&&!H21&&!H35&&!websites1&&!couchdb&&!plc4x&&!ppc64le')
- ignoreOffline(true)
- }
+ label('Nodes','H25','H29','H31','H34','H35','H36','H39','H42','H43','H44','H48','H50','lucene1','lucene2','master')
}
steps {
conditionalSteps {
@@ -614,7 +622,7 @@ Unfortunately we often see builds break because of changes/new machines...''')
runner('DontRun')
steps {
shell(
-'''which svn || true
+ '''which svn || true
which javac
javac -version
echo '<?xml version="1.0"?><project name="POI Build" default="test"><target name="test"><echo>Using Ant: ${ant.version} from ${ant.home}</echo></target></project>' > build.xml
@@ -642,7 +650,7 @@ echo '<project><modelVersion>4.0.0</modelVersion><groupId>org.apache.poi</groupI
steps {
batchFile {
command(
-'''@echo off
+ '''@echo off
echo .
where javac.exe
echo .
@@ -719,4 +727,4 @@ bottomPortlets {
testStatisticsGrid()
buildStatistics()
}
-}*/
+}*/ \ No newline at end of file