Skip to content

Commit

Permalink
chore: add back ensure vmss deletion to yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Cameron Meissner committed Jan 3, 2024
1 parent 6fc85ff commit 9fd9e0e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .pipelines/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,27 @@ jobs:
export BUILD_ID=$(Build.BuildId)
cd e2e
go test -timeout 45m -v -run Test_All ./
go test -timeout 90m -v -run Test_All ./
displayName: Run AgentBaker E2E
env:
VHD_BUILD_ID: $(VHD_BUILD_ID)
ADO_PAT: $(ADO_PAT)
- publish: $(System.DefaultWorkingDirectory)/e2e/scenario-logs
artifact: scenario-logs
condition: always()
- bash: |
set -x
vmssResourceIds=""
for vmssModel in e2e/scenario-logs/*/vmssId.txt; do
resourceId=$(cat ${vmssModel})
vmssResourceIds="${vmssResourceIds} ${resourceId}"
done
if [ -n "${vmssResourceIds// }" ]; then
az resource delete --ids ${vmssResourceIds}
fi
displayName: ensure vmss deletion
condition: always()

0 comments on commit 9fd9e0e

Please sign in to comment.