diff --git a/Jenkinsfile b/Jenkinsfile index 68c013838c2559df956d26ca7184082bed028aef..973808053d6ec83ffb608450756cee958e244dbc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,8 +17,7 @@ pipeline { TOPIC_BRANCH = selectTopicBranch(env.BRANCH_NAME, env.CHANGE_BRANCH) DEFAULT_BRANCH = 'development' - NRP_COVERAGE_LINE=50 - NRP_COVERAGE_BRANCH=0 + CODE_COVERAGE_LINE = 74 } agent { docker { @@ -84,18 +83,8 @@ pipeline { sh 'sudo -H -u bbpnrsoa bash .ci/build.bash' // deliver artifacts - step([$class: 'CoberturaPublisher', - autoUpdateHealth: true, - autoUpdateStability: false, - coberturaReportFile: 'coverage.xml', - failUnhealthy: true, - failUnstable: false, - maxNumberOfBuilds: 0, - onlyStable: false, - sourceEncoding: 'ASCII', - zoomCoverageChart: false, - lineCoverageTargets: "0.0, 0, 0"]) - archiveArtifacts 'coverage.xml' + // Make true to false when the coverage reaches 85%-90%. This with turn off auto threshold for coverage + makeReports(true, env.CODE_COVERAGE_LINE) } } } @@ -106,8 +95,7 @@ pipeline { dir(env.GIT_CHECKOUT_DIR){ archiveArtifacts 'p*.*' archiveArtifacts 'test-reports/*.*' - junit 'test-reports/*.xml' - recordIssues enabledForFailure: true, tools: [pyLint(pattern: 'pylint.txt'), pep8(pattern: 'pycodestyle.txt')], qualityGates: [[threshold: 1, type: 'TOTAL', unstable: true]] + archiveArtifacts 'coverage.xml' } } aborted {