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