#2648 - trying to fix the artifacts publish stage. currently creating tar.gz and publishing that

This commit is contained in:
Chris McCarthy
2024-06-26 09:09:16 +01:00
parent 4249314672
commit 0ee243a242

View File

@@ -72,13 +72,13 @@ steps:
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))
- script: |
mkdir -p artifact_output/benchmark/results/v$(MAJOR_VERSION)
cp -r benchmark/results/v$(MAJOR_VERSION)/v$(VERSION) artifact_output/benchmark/results/v$(MAJOR_VERSION)/
ls benchmark/results/v$(MAJOR_VERSION)/v$(VERSION)
tar czf benchmark.tar.gz benchmark/results/v$(MAJOR_VERSION)/v$(VERSION)
displayName: 'Prepare Artifacts for Publishing'
- task: PublishPipelineArtifact@1
inputs:
targetPath: 'artifact_output/benchmark/results' # Path to the files you want to publish
targetPath: benchmark.tar.gz # Path to the files you want to publish
artifactName: 'benchmark-output' # Name of the artifact
publishLocation: 'pipeline'
displayName: 'Publish Benchmark Output as Artifact'