From a7bcdcc910a0c565b829b4fb99d2e5dd9c9980aa Mon Sep 17 00:00:00 2001 From: James Mudd Date: Fri, 1 Mar 2019 18:45:44 +0000 Subject: [PATCH] #59 Prevent test reports being published from source+JavaDoc builds --- azure-pipelines.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 2199f187..8d01225b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,6 +13,7 @@ jobs: Java 11: java.version: '1.11' steps: + # Build using a Gradle wrapper script - task: Gradle@2 displayName: Build/Test @@ -20,14 +21,12 @@ jobs: gradleWrapperFile: 'jhdf/gradlew' workingDirectory: jhdf tasks: 'clean build jacocoTestReport' - publishJUnitResults: true + publishJUnitResults: true testResultsFiles: 'jhdf/build/test-results/test/TEST-*.xml' testRunTitle: $(osName) $(Agent.JobName) - #codeCoverageToolOption: 'jaCoCo' - #codeCoverageClassFilesDirectories: 'build/classes/main/' jdkVersionOption: $(java.version) - # Build using a Gradle wrapper script + # Source + JavaDoc - task: Gradle@2 displayName: Build Sources + JavaDoc Jars inputs: @@ -35,7 +34,9 @@ jobs: workingDirectory: jhdf tasks: 'sourcesJar javadocJar' jdkVersionOption: $(java.version) + publishJUnitResults: false + # SonarQube - script: 'cd jhdf; ./gradlew sonarqube -Dsonar.projectKey=jamesmudd_jhdf @@ -56,6 +57,7 @@ jobs: Java 11: java.version: '1.11' steps: + # Build using a Gradle wrapper script - task: Gradle@2 displayName: Build/Test @@ -63,14 +65,12 @@ jobs: gradleWrapperFile: 'jhdf/gradlew' workingDirectory: jhdf tasks: 'build' - publishJUnitResults: true + publishJUnitResults: true testResultsFiles: 'jhdf/build/test-results/test/TEST-*.xml' testRunTitle: $(osName) $(Agent.JobName) - #codeCoverageToolOption: 'jaCoCo' - #codeCoverageClassFilesDirectories: 'build/classes/main/' jdkVersionOption: $(java.version) - # Build using a Gradle wrapper script + # Source + JavaDoc - task: Gradle@2 displayName: Build Sources + JavaDoc Jars inputs: @@ -78,3 +78,4 @@ jobs: workingDirectory: jhdf tasks: 'sourcesJar javadocJar' jdkVersionOption: $(java.version) + publishJUnitResults: false