add withChecks into pipeline

This commit is contained in:
Nilton Constantino 2025-02-19 13:08:27 +00:00
parent 87096e1fd9
commit e69da61bf0

18
Jenkinsfile vendored
View File

@ -2,22 +2,10 @@ pipeline {
agent any
stages {
stage('Clean') {
steps {
echo 'Clean..'
sh './gradlew clean'
}
}
stage('Build') {
steps {
echo 'Building..'
sh './gradlew build'
}
}
stage('Test') {
steps {
echo 'Testing..'
sh './gradlew test'
withChecks(name: 'Test', includeStage: true) {
sh './gradlew clean test'
junit '**/build/test-results/test/TEST-*.xml'
}
}
}