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