2020-07-22 08:08:49 +00:00
|
|
|
@Library('corda-shared-build-pipeline-steps')
|
|
|
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
|
|
|
|
|
|
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
|
|
|
|
|
|
|
pipeline {
|
2021-06-01 14:21:22 +00:00
|
|
|
agent { label 'standard' }
|
2020-07-22 08:08:49 +00:00
|
|
|
options {
|
|
|
|
timestamps()
|
|
|
|
timeout(time: 3, unit: 'HOURS')
|
|
|
|
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Detekt check') {
|
|
|
|
steps {
|
2022-02-14 17:04:47 +00:00
|
|
|
authenticateGradleWrapper()
|
2020-07-22 08:08:49 +00:00
|
|
|
sh "./gradlew --no-daemon clean detekt"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Compilation warnings check') {
|
|
|
|
steps {
|
|
|
|
sh "./gradlew --no-daemon -Pcompilation.warningsAsErrors=true compileAll"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('No API change check') {
|
|
|
|
steps {
|
|
|
|
sh "./gradlew --no-daemon generateApi"
|
|
|
|
sh ".ci/check-api-changes.sh"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Deploy Nodes') {
|
|
|
|
steps {
|
|
|
|
sh "./gradlew --no-daemon jar deployNodes"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
cleanup {
|
|
|
|
deleteDir() /* clean up our workspace */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|