[NC-1934] build multiple jvm (#301)

Chris Mckay 6 years ago committed by GitHub
parent 1e779438b3
commit 8401db496c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 37
      Jenkinsfile.jvmtest

@ -0,0 +1,37 @@
#!/usr/bin/env groovy
def images = [
'openjdk:8',
'openjdk:10',
'openjdk:11',
'airdock/oracle-jdk:1.8',
'adoptopenjdk/openjdk8-openj9:jdk8u181-b13_openj9-0.9.0'
]
// def builds = [:]
for (x in images) {
def image = x
// builds[image] = {
node {
checkout scm
docker.image(image).inside {
try {
stage('Build ' + image) {
sh './gradlew --no-daemon --parallel build'
}
} finally {
archiveArtifacts '**/build/reports/**'
archiveArtifacts '**/build/test-results/**'
archiveArtifacts 'build/reports/**'
archiveArtifacts 'build/distributions/**'
junit '**/build/test-results/**/*.xml'
}
}
}
// }
}
// parallel builds
Loading…
Cancel
Save