23 lines
619 B
Groovy
23 lines
619 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('build') {
|
|
steps {
|
|
withChecks(name: 'build', includeStage: true) {
|
|
sh './gradlew clean testClasses'
|
|
}
|
|
withChecks(name: 'unit-tests', includeStage: true) {
|
|
sh './gradlew test'
|
|
}
|
|
withChecks(name: 'test-coverage', includeStage: true) {
|
|
sh './gradlew jacocoTestReport jacocoTestCoverageVerification'
|
|
junit '**/build/test-results/test/TEST-*.xml'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|