fix/pipeline #16

Closed
bquarkz wants to merge 16 commits from fix/pipeline into master
2 changed files with 8 additions and 14 deletions
Showing only changes of commit 9ec20b53e3 - Show all commits

8
Jenkinsfile vendored
View File

@ -4,14 +4,8 @@ pipeline {
stages { stages {
stage('build') { stage('build') {
steps { steps {
withChecks(name: 'build', includeStage: true) {
sh './gradlew clean testClasses'
}
withChecks(name: 'unit-tests', includeStage: true) {
sh './gradlew test'
}
withChecks(name: 'test-coverage', includeStage: true) { withChecks(name: 'test-coverage', includeStage: true) {
sh './gradlew jacocoTestReport jacocoTestCoverageVerification' sh './gradlew clean test jacocoTestReport jacocoTestCoverageVerification'
junit '**/build/test-results/test/TEST-*.xml' junit '**/build/test-results/test/TEST-*.xml'
recordCoverage(tools: [[parser: 'JACOCO']], recordCoverage(tools: [[parser: 'JACOCO']],
id: 'jacoco', name: 'JaCoCo Coverage', id: 'jacoco', name: 'JaCoCo Coverage',

View File

@ -37,13 +37,13 @@ jacoco {
toolVersion = "0.8.12" toolVersion = "0.8.12"
} }
//tasks.jacocoTestReport { tasks.jacocoTestReport {
// reports { reports {
// xml.required = true xml.required.set(true)
// csv.required = false csv.required.set(false)
// html.required = true html.required.set(true)
// } }
//} }
tasks.jacocoTestCoverageVerification { tasks.jacocoTestCoverageVerification {
violationRules { violationRules {