diff options
author | Dominik Stadler <centic@apache.org> | 2021-11-07 14:59:43 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2021-11-07 14:59:43 +0000 |
commit | c2936346f82699d3d2ed5cf1a9c17cc05da9bbcc (patch) | |
tree | 9b7f9b304b4e27c7a1cbf3e78e8059e190dcaf2c | |
parent | 034c95ec55ea4770b02a02466c5c8dacf3329066 (diff) | |
download | poi-c2936346f82699d3d2ed5cf1a9c17cc05da9bbcc.tar.gz poi-c2936346f82699d3d2ed5cf1a9c17cc05da9bbcc.zip |
Add JUnit and JaCoCo publisher to Sonar-Gradle Job
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1894811 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | jenkins/create_jobs.groovy | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/jenkins/create_jobs.groovy b/jenkins/create_jobs.groovy index fcb1d04376..c8397fa1cb 100644 --- a/jenkins/create_jobs.groovy +++ b/jenkins/create_jobs.groovy @@ -383,7 +383,21 @@ poijobs.each { poijob -> } } publishers { - if (!poijob.skipcigame) { + // in archive, junit and jacoco publishers, matches beneath build/*/build/... are for Gradle-build results + archiveArtifacts('build/dist/*.tar.gz,*/build/reports/**,poi-integration/build/test-results/**,*/build/libs/*.jar') + archiveJunit('*/build/test-results/**/TEST-*.xml') { + testDataPublishers { + publishTestStabilityData() + } + } + jacocoCodeCoverage { + classPattern('*/build/classes') + execPattern('*/build/*.exec,*/build/jacoco/*.exec') + sourcePattern('*/src/main/java') + exclusionPattern('com/microsoft/**,org/openxmlformats/**,org/etsi/**,org/w3/**,schemaorg*/**,schemasMicrosoft*/**,org/apache/poi/hdf/model/hdftypes/definitions/*.class,org/apache/poi/hwpf/model/types/*.class,org/apache/poi/hssf/usermodel/DummyGraphics2d.class,org/apache/poi/sl/draw/binding/*.class') + } + + if (!poijob.skipcigame) { configure { project -> project / publishers << 'hudson.plugins.cigame.GamePublisher' {} } |