mirror of
https://github.com/corda/corda.git
synced 2024-12-30 17:57:02 +00:00
286873a4e4
* JDK11 compatibility - simply switch to AWS Jenkins agent * Corda preview - simply switch from Azure agent to AWS agent * part of retiring `k8s` agent used for parallel builds
49 lines
1.4 KiB
Groovy
49 lines
1.4 KiB
Groovy
#!groovy
|
|
/**
|
|
* Jenkins pipeline to build Corda Opensource Pull Requests with JDK11.
|
|
*/
|
|
|
|
@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 'standard'
|
|
additionalBuildArgs '--build-arg USER="${USER}"' // DON'T change quotation - USER variable is substituted by SHELL!!!!
|
|
filename '.ci/dev/compatibility/DockerfileJDK11'
|
|
}
|
|
}
|
|
options {
|
|
timestamps()
|
|
timeout(time: 3, unit: 'HOURS')
|
|
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
|
|
}
|
|
|
|
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 {
|
|
always {
|
|
archiveArtifacts allowEmptyArchive: true, artifacts: '**/logs/**/*.log'
|
|
junit testResults: '**/build/test-results/**/*.xml', keepLongStdio: true
|
|
}
|
|
cleanup {
|
|
deleteDir() /* clean up our workspace */
|
|
}
|
|
}
|
|
}
|