add withChecks into pipeline
This commit is contained in:
parent
aae261ffa3
commit
983b67833b
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -2,11 +2,16 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Test') {
|
stage('build') {
|
||||||
steps {
|
steps {
|
||||||
withChecks(name: 'Test') {
|
withChecks(name: 'build', in) {
|
||||||
echo 'Testing..'
|
sh './gradlew clean testClasses'
|
||||||
sh './gradlew clean test jacocoTestReport jacocoTestCoverageVerification'
|
}
|
||||||
|
withChecks(name: 'unit-tests', in) {
|
||||||
|
sh './gradlew test'
|
||||||
|
}
|
||||||
|
withChecks(name: 'test-coverage', in) {
|
||||||
|
sh './gradlew jacocoTestReport jacocoTestCoverageVerification'
|
||||||
junit '**/build/test-results/test/TEST-*.xml'
|
junit '**/build/test-results/test/TEST-*.xml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user