add withChecks into pipeline
All checks were successful
Jacoco Coverage #### Project Overview No changes detected, that affect the code coverage. * Line Coverage: 50.00% (2/4) * Lines of Code: 4 * Cyclomatic Complexity: 3 #### Quality Gates Summary Overall result: Success Output truncated.
Test / Build passed: 1

This commit is contained in:
bQUARKz 2025-02-20 07:26:16 +00:00
parent 5c649f3481
commit 5ee039ba1b

17
Jenkinsfile vendored
View File

@ -2,21 +2,9 @@ pipeline {
agent any
stages {
// stage('Build') {
// steps {
// withChecks(name: 'build', includeStage: false) {
// withGradle {
// sh """
// ./gradlew clean testClasses --no-daemon
// """
// }
// }
// }
// } // Build
stage('Build') {
steps {
withChecks(name: 'Test', includeStage: false) {
withChecks(name: 'Test', includeStage: true) {
withGradle {
sh """
./gradlew clean test jacocoTestReport jacocoTestCoverageVerification --no-daemon
@ -39,7 +27,6 @@ pipeline {
stage('Reports') {
steps {
script {
// junit skipPublishingChecks: true, testResults: '**/build/test-results/test/TEST-*.xml'
// archiveArtifacts artifacts: '**/coverage-sources.zip', allowEmptyArchive: false, fingerprint: false, onlyIfSuccessful: false
publishHTML (target: [
allowMissing: true,
@ -53,6 +40,6 @@ pipeline {
// publishIssues issues: [pmd]
}
}
} // Post
} // Reports
}
}