mirror of
https://github.com/corda/corda.git
synced 2025-01-21 20:08:27 +00:00
49 lines
1.2 KiB
Plaintext
49 lines
1.2 KiB
Plaintext
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||
|
@Library('existing-build-control')
|
||
|
import static com.r3.build.BuildControl.killAllExistingBuildsForJob
|
||
|
|
||
|
killAllExistingBuildsForJob(env.JOB_NAME, env.BUILD_NUMBER.toInteger())
|
||
|
|
||
|
pipeline {
|
||
|
agent { label 'open-j9' }
|
||
|
options {
|
||
|
timestamps()
|
||
|
timeout(time: 10, unit: 'HOURS')
|
||
|
}
|
||
|
|
||
|
environment {
|
||
|
EXECUTOR_NUMBER = "${env.EXECUTOR_NUMBER}"
|
||
|
}
|
||
|
|
||
|
stages {
|
||
|
stage('Unit Tests') {
|
||
|
steps {
|
||
|
sh "./gradlew clean --continue test --info"
|
||
|
}
|
||
|
}
|
||
|
stage('Integration Tests') {
|
||
|
steps {
|
||
|
sh "./gradlew clean --continue integrationTest --info"
|
||
|
}
|
||
|
}
|
||
|
stage('Smoke Tests') {
|
||
|
steps {
|
||
|
sh "./gradlew clean --continue smokeTest --info"
|
||
|
}
|
||
|
}
|
||
|
stage('Slow Integration Tests') {
|
||
|
steps {
|
||
|
sh "./gradlew clean --continue slowIntegrationTest --info"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
post {
|
||
|
always {
|
||
|
junit '**/build/test-results/**/*.xml'
|
||
|
}
|
||
|
cleanup {
|
||
|
deleteDir() /* clean up our workspace */
|
||
|
}
|
||
|
}
|
||
|
}
|