Skip to content

Commit

Permalink
Fix cleanup stage
Browse files Browse the repository at this point in the history
  • Loading branch information
jananivMS committed Jun 11, 2020
1 parent 9350400 commit 4481c1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,16 @@ steps:
scriptType: 'bash'
scriptLocation: 'inlineScript'
inlineScript: |
make delete
kubectl delete -f ./charts/azure-service-operator/crds/
helm list
helm delete aso
echo "Chosen AKS Cluster name"
echo $(chosenclustername)
# Set tags to available for the selected cluster to put it back into the free pool
echo "Setting tags back to free"
az resource tag --tags 'freeforpipeline=true' -g $(AKS_CLUSTER_RG) -n $(chosenclustername) --resource-type Microsoft.ContainerService/managedClusters
workingDirectory: '$(System.DefaultWorkingDirectory)'
failOnStandardError: true
failOnStandardError: false
displayName: Deploy to AKS - Clean up deployment and release cluster back to free pool

- task: Docker@2
Expand Down

0 comments on commit 4481c1b

Please sign in to comment.