Skip to content

Commit

Permalink
fix: publishing artifact issue (#5931)
Browse files Browse the repository at this point in the history
Co-authored-by: Zachary Bailey <[email protected]>
  • Loading branch information
zachary-bailey and Zachary Bailey authored Feb 26, 2025
1 parent f45fedb commit 4f98a13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .pipelines/templates/.builder-release-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ steps:
CAPTURED_SIG_VERSION="$(cat vhdbuilder/packer/settings.json | grep "captured_sig_version" | awk -F':' '{print $2}' | awk -F'"' '{print $2}')" && \
SIG_IMAGE_NAME="$(cat vhdbuilder/packer/settings.json | grep "sig_image_name" | awk -F':' '{print $2}' | awk -F'"' '{print $2}')" && \
BUILD_LOCATION="$(cat vhdbuilder/packer/settings.json | grep "location" | awk -F':' '{print $2}' | awk -F'"' '{print $2}')" && \
ARTIFACT_ID=$(date +%s) && \
echo "##vso[task.setvariable variable=ARTIFACT_ID]${ARTIFACT_ID}" && \
echo "##vso[task.setvariable variable=PACKER_BUILD_LOCATION]${BUILD_LOCATION}" && \
echo "##vso[task.setvariable variable=PACKER_VNET_RESOURCE_GROUP_NAME]${PACKER_VNET_RESOURCE_GROUP_NAME}" && \
echo "##vso[task.setvariable variable=PACKER_VNET_NAME]${PACKER_VNET_NAME}" && \
Expand Down Expand Up @@ -146,13 +148,14 @@ steps:
condition: always()
displayName: Publish BCC Tools Installation Log
inputs:
artifactName: 'bcc-tools-installation-log-${{ parameters.artifactName }}'
artifactName: 'bcc-tools-installation-log-$(ARTIFACT_ID)-${{ parameters.artifactName }}'
targetPath: 'bcc-tools-installation.log'

- task: CopyFiles@2
condition: always()
displayName: Copy BCC Tools Installation Log
inputs:
Overwrite: true
SourceFolder: '$(System.DefaultWorkingDirectory)'
Contents: 'bcc-tools-installation.log'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
Expand Down

0 comments on commit 4f98a13

Please sign in to comment.