2020-09-02 13:35:30 +00:00
|
|
|
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 {
|
2020-10-16 12:03:25 +00:00
|
|
|
agent { label 'open-j9 && os' }
|
2020-09-02 13:35:30 +00:00
|
|
|
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 */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|