#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/')) condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))
- script: | - script: |
mkdir -p artifact_output/benchmark/results/v$(MAJOR_VERSION) ls benchmark/results/v$(MAJOR_VERSION)/v$(VERSION)
cp -r benchmark/results/v$(MAJOR_VERSION)/v$(VERSION) artifact_output/benchmark/results/v$(MAJOR_VERSION)/ tar czf benchmark.tar.gz benchmark/results/v$(MAJOR_VERSION)/v$(VERSION)
displayName: 'Prepare Artifacts for Publishing' displayName: 'Prepare Artifacts for Publishing'
- task: PublishPipelineArtifact@1 - task: PublishPipelineArtifact@1
inputs: 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 artifactName: 'benchmark-output' # Name of the artifact
publishLocation: 'pipeline' publishLocation: 'pipeline'
displayName: 'Publish Benchmark Output as Artifact' displayName: 'Publish Benchmark Output as Artifact'