Don't run coverage on docs-only builds
@@ -309,6 +309,7 @@ pipeline {
sh script: 'pip3 install --user coverage', label: "Installing coverage"
dir("${BASE_DIR}"){
script {
+ if (env.ONLY_DOCS == "false") {
def matrixDump = pythonTasksGen.dumpMatrix("-")
for(vector in matrixDump) {
unstash("coverage-${vector}")
@@ -323,8 +324,10 @@ pipeline {
cobertura coberturaReportFile: 'coverage.xml'
}
}
+ }
// Results
script{
+ if (env.ONLY_DOCS == "false") {
if(pythonTasksGen?.results){
writeJSON(file: 'results.json', json: toJSON(pythonTasksGen.results), pretty: 2)
def mapResults = ["${params.agent_integration_test}": pythonTasksGen.results]
@@ -333,6 +336,7 @@ pipeline {
archiveArtifacts allowEmptyArchive: true, artifacts: 'results.json,results.html', defaultExcludes: false
}
}
+ }
notifyBuildResult()
}
}
