mirror of
https://github.com/corda/corda.git
synced 2024-12-23 23:02:29 +00:00
8d994283c6
* removed `.ci/dev/unit/Jenkinsfile` and `.ci/dev/integration/Jenkinsfile` - they don't seem to be used anywhere * switched mandatory tests to linear build - modeled after Corda Enterprise * switched nightly regression tests to linear build - modeled after Corda Enterprise
47 lines
1.1 KiB
Groovy
47 lines
1.1 KiB
Groovy
@Library('corda-shared-build-pipeline-steps')
|
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
|
|
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
|
|
|
pipeline {
|
|
agent { label 'standard' }
|
|
options {
|
|
timestamps()
|
|
timeout(time: 3, unit: 'HOURS')
|
|
buildDiscarder(logRotator(daysToKeepStr: '14', artifactDaysToKeepStr: '14'))
|
|
}
|
|
|
|
stages {
|
|
stage('Detekt check') {
|
|
steps {
|
|
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 */
|
|
}
|
|
}
|
|
}
|