INFRA-348 JDK 11 Compatibility job migration (#6311)

This commit is contained in:
Razvan Codreanu 2020-06-05 15:20:03 +01:00 committed by GitHub
parent 6ab6099075
commit cf8cd8e004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,9 @@
FROM azul/zulu-openjdk:11
RUN apt-get update && apt-get install -y curl apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
wget
ARG USER="stresstester"
RUN useradd -m ${USER}

View File

@ -0,0 +1,38 @@
@Library('corda-shared-build-pipeline-steps')
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
pipeline {
agent {
dockerfile {
label 'k8s'
additionalBuildArgs "--build-arg USER=stresstester"
filename '.ci/dev/compatibility/DockerfileJDK11Compile'
}
}
options {
timestamps()
timeout(time: 3, unit: 'HOURS')
}
stages {
stage('JDK 11 Compile') {
steps {
sh "./gradlew --no-daemon -Pcompilation.allWarningsAsErrors=true -Ptests.failFast=false " +
"-Ptests.ignoreFailures=true clean compileAll --stacktrace"
}
}
stage('Deploy nodes') {
steps {
sh "./gradlew --no-daemon deployNodes"
}
}
}
post {
cleanup {
deleteDir() /* clean up our workspace */
}
}
}