2021-06-02 12:23:30 +00:00
|
|
|
#!groovy
|
|
|
|
/**
|
|
|
|
* Jenkins pipeline to build Corda Opensource Pull Requests with JDK11.
|
|
|
|
*/
|
|
|
|
|
2020-06-05 14:20:03 +00:00
|
|
|
@Library('corda-shared-build-pipeline-steps')
|
|
|
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
|
|
|
|
|
|
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
2021-06-02 12:23:30 +00:00
|
|
|
label 'standard'
|
|
|
|
additionalBuildArgs '--build-arg USER="${USER}"' // DON'T change quotation - USER variable is substituted by SHELL!!!!
|
2020-06-19 13:10:31 +00:00
|
|
|
filename '.ci/dev/compatibility/DockerfileJDK11'
|
2020-06-05 14:20:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
timestamps()
|
|
|
|
timeout(time: 3, unit: 'HOURS')
|
2020-07-15 09:17:58 +00:00
|
|
|
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
|
2020-06-05 14:20:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('JDK 11 Compile') {
|
|
|
|
steps {
|
2022-02-14 17:04:47 +00:00
|
|
|
authenticateGradleWrapper()
|
2020-06-05 14:20:03 +00:00
|
|
|
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 */
|
|
|
|
}
|
|
|
|
}
|
2020-07-15 09:17:58 +00:00
|
|
|
}
|