From 6828c5c9c1a896478ec02bb0fc393ad8f4fe3762 Mon Sep 17 00:00:00 2001 From: Mark Iantorno Date: Tue, 2 Jun 2020 14:55:51 -0400 Subject: [PATCH] Limiting codecov publishing to 1/build. Was previously publishing for eachOS --- azure-pipelines.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b3ded8145..07f7b28f0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -78,6 +78,7 @@ steps: # Upload test results to codecov - script: bash <(curl https://codecov.io/bash) -t $(codecov) displayName: 'codecov Bash Uploader' + condition: and(eq(variables.currentImage, 'ubuntu-16.04'), eq(variables['Build.SourceBranch'], 'refs/heads/master')) # Publishes the test results to build artifacts. - task: PublishCodeCoverageResults@1 @@ -86,7 +87,8 @@ steps: codeCoverageTool: 'JaCoCo' summaryFileLocation: '$(System.DefaultWorkingDirectory)/org.hl7.fhir.report/target/site/jacoco-aggregate/jacoco.xml' reportDirectory: '$(System.DefaultWorkingDirectory)/org.hl7.fhir.report/target/site/jacoco-aggregate/' - + condition: and(eq(variables.currentImage, 'ubuntu-16.04'), eq(variables['Build.SourceBranch'], 'refs/heads/master')) + # Publishes the built Validator jar to build artifacts. Primarily for testing and debugging builds. - task: PublishPipelineArtifact@1 displayName: 'Publish Validator jar'