add withChecks into pipeline
This commit is contained in:
parent
87096e1fd9
commit
e69da61bf0
18
Jenkinsfile
vendored
18
Jenkinsfile
vendored
@ -2,22 +2,10 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Clean') {
|
|
||||||
steps {
|
|
||||||
echo 'Clean..'
|
|
||||||
sh './gradlew clean'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Build') {
|
|
||||||
steps {
|
|
||||||
echo 'Building..'
|
|
||||||
sh './gradlew build'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Test') {
|
stage('Test') {
|
||||||
steps {
|
withChecks(name: 'Test', includeStage: true) {
|
||||||
echo 'Testing..'
|
sh './gradlew clean test'
|
||||||
sh './gradlew test'
|
junit '**/build/test-results/test/TEST-*.xml'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user