Skip to content

Commit

Permalink
Merge pull request #60 from jamesmudd/build-fix-#59
Browse files Browse the repository at this point in the history
#59 Prevent test reports being published from source+JavaDoc builds
  • Loading branch information
jamesmudd authored Mar 1, 2019
2 parents 97aa501 + a7bcdcc commit 03e6fec
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,30 @@ jobs:
Java 11:
java.version: '1.11'
steps:

# Build using a Gradle wrapper script
- task: Gradle@2
displayName: Build/Test
inputs:
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:
gradleWrapperFile: 'jhdf/gradlew'
workingDirectory: jhdf
tasks: 'sourcesJar javadocJar'
jdkVersionOption: $(java.version)
publishJUnitResults: false

# SonarQube
- script: 'cd jhdf;
./gradlew sonarqube
-Dsonar.projectKey=jamesmudd_jhdf
Expand All @@ -56,25 +57,25 @@ jobs:
Java 11:
java.version: '1.11'
steps:

# Build using a Gradle wrapper script
- task: Gradle@2
displayName: Build/Test
inputs:
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:
gradleWrapperFile: 'jhdf/gradlew'
workingDirectory: jhdf
tasks: 'sourcesJar javadocJar'
jdkVersionOption: $(java.version)
publishJUnitResults: false

0 comments on commit 03e6fec

Please sign in to comment.