From 6be0961d17d40f1b009956aaee6272ce916af351 Mon Sep 17 00:00:00 2001 From: jhoneill Date: Sun, 8 Dec 2019 01:47:43 +0000 Subject: [PATCH] Improve Artifacts --- CI/PS-CI.ps1 | 4 ++-- CI/pipeline.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CI/PS-CI.ps1 b/CI/PS-CI.ps1 index 9c8f5ac..ad6f3c4 100644 --- a/CI/PS-CI.ps1 +++ b/CI/PS-CI.ps1 @@ -207,8 +207,8 @@ if (-not $SkipPostChecks) { } Remove-Item -Path $ExcelParams['Path'] -ErrorAction SilentlyContinue $AnalyzerResults | Export-Excel @ExcelParams - "Try to uploadfile$($ExcelParams['Path'])" - "##vso[task.uploadfile]$($ExcelParams['Path'])" + "Try to uploadfile {0}" -f $ExcelParams['Path'] + "##vso[task.uploadfile]{0}" -f $ExcelParams['Path'] } } diff --git a/CI/pipeline.yml b/CI/pipeline.yml index 06b5a48..76a80ca 100644 --- a/CI/pipeline.yml +++ b/CI/pipeline.yml @@ -22,12 +22,12 @@ jobs: displayName: 'Update Modules' - powershell: './CI/PS-CI.ps1' displayName: 'Check Build Check Pack Test' - - task: PublishPipelineArtifact@1 - inputs: - targetPath: '$(Build.ArtifactStagingDirectory)' - artifact: 'Modules' - task: PublishTestResults@2 inputs: testResultsFormat: 'NUnit' testResultsFiles: '**/TestResults*.xml' failTaskOnFailedTests: true + - task: PublishPipelineArtifact@1 + inputs: + targetPath: '$(Build.ArtifactStagingDirectory)/ImportExcel' + artifact: 'ImportExcel'