Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Prepend tfoutput.json file with jobname #934

Merged
merged 1 commit into from
Apr 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .ado/pipelines/templates/steps-terraform-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ steps:

terraform apply -parallelism=20 -auto-approve tf_plan

echo "Writing Terraform output file to tfoutput.json"
terraform output -json >> tfoutput.json
echo "Writing Terraform output file to ${{ parameters.jobName }}-tfoutput.json"
terraform output -json >> ${{ parameters.jobName }}-tfoutput.json

# Publish Terraform Outputs
- publish: '${{ parameters.terraformWorkingDirectory }}/tfoutput.json'
- publish: '${{ parameters.terraformWorkingDirectory }}/${{ parameters.jobName }}-tfoutput.json'
artifact: 'terraformOutput${{ parameters.jobName }}' # artifact name
condition: succeeded()
displayName: 'Publish Terraform Outputs JSON'