#234 - Enable building with JDK11.

This commit is contained in:
Mark Paluch
2020-01-14 15:17:54 +01:00
parent 6b9d834ba0
commit 5951df558c
2 changed files with 46 additions and 6 deletions

View File

@@ -8,9 +8,9 @@ sudo: false
services:
- docker
- postgresql
install: true
script:
- "./mvnw clean dependency:list test -Pno-jacoco -Dsort -U"
- "./mvnw -version"
- "./mvnw -Pjava11 clean dependency:list test -Dsort -U"

48
Jenkinsfile vendored
View File

@@ -12,7 +12,30 @@ pipeline {
}
stages {
stage("Test") {
stage("test: baseline (jdk8)") {
when {
anyOf {
branch 'master'
not { triggeredBy 'UpstreamCause' }
}
}
agent {
docker {
image 'adoptopenjdk/openjdk8:latest'
label 'data'
args '-u root -v /var/run/docker.sock:/var/run/docker.sock'
// root but with no maven caching
}
}
options { timeout(time: 30, unit: 'MINUTES') }
steps {
sh 'rm -rf ?'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci clean dependency:list test -Dsort -U -B'
sh "chown -R 1001:1001 target"
}
}
stage("Test other configurations") {
when {
anyOf {
branch 'master'
@@ -20,10 +43,10 @@ pipeline {
}
}
parallel {
stage("test: baseline") {
stage("test: baseline (jdk11)") {
agent {
docker {
image 'adoptopenjdk/openjdk8:latest'
image 'adoptopenjdk/openjdk11:latest'
label 'data'
args '-u root -v /var/run/docker.sock:/var/run/docker.sock'
// root but with no maven caching
@@ -32,7 +55,24 @@ pipeline {
options { timeout(time: 30, unit: 'MINUTES') }
steps {
sh 'rm -rf ?'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci clean dependency:list test -Dsort -Dbundlor.enabled=false -U -B'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,java11 clean dependency:list test -Dsort -U -B'
sh "chown -R 1001:1001 target"
}
}
stage("test: baseline (jdk13)") {
agent {
docker {
image 'adoptopenjdk/openjdk13:latest'
label 'data'
args '-u root -v /var/run/docker.sock:/var/run/docker.sock'
// root but with no maven caching
}
}
options { timeout(time: 30, unit: 'MINUTES') }
steps {
sh 'rm -rf ?'
sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pci,java11 clean dependency:list test -Dsort -U -B'
sh "chown -R 1001:1001 target"
}
}