Skip to content

Commit

Permalink
Update CLITest.yml (#21408)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangzelin007 authored Feb 24, 2022
1 parent 92c50bc commit 97b23f1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/live_test/CLITest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ jobs:
az -v
# az login --service-principal --username $(APP_ID) --password $(PASSWORD) --tenant $(TENANT_ID)
az login -u azureclitest@azuresdkteam.onmicrosoft.com -p $(AZURECLITESTPASSWORD)
az login -u azureclilivetest@azuresdkteam.onmicrosoft.com -p $(AZURECLITESTPASSWORD)
az account set -s 0b1f6471-1bf0-4dda-aec3-cb9272f09590
# Clean resources
Expand Down Expand Up @@ -457,7 +457,7 @@ jobs:
downloadPath: '$(System.ArtifactsDirectory)'
- bash: |
set -o errexit
echo $(System.ArtifactsDirectory)
echo "ArtifastsDirectory: $(System.ArtifactsDirectory)"
ls $(System.ArtifactsDirectory)
pwd
commit_id=`git ls-remote https://github.com/Azure/azure-cli.git HEAD`
Expand All @@ -467,8 +467,11 @@ jobs:
# pip install certifi
# Send notification
az -v
az login -u azureclitest@azuresdkteam.onmicrosoft.com -p $(AZURECLITESTPASSWORD)
echo "login to user azureclilivetest"
az login -u azureclilivetest@azuresdkteam.onmicrosoft.com -p $(AZURECLITESTPASSWORD)
echo "set account"
az account set -s 0b1f6471-1bf0-4dda-aec3-cb9272f09590
echo "send email to grid"
python /home/vsts/work/1/s/scripts/live_test/sendemail.py "$(SENDGRID_KEY)" "$(Build.BuildId)" "$(USER_REPO)" "$(USER_BRANCH)" "$(USER_TARGET)" "$(USER_LIVE)" "$(System.ArtifactsDirectory)" "$(Build.RequestedForEmail)" "$(ACCOUNT_KEY)" "$commit_id" "$(DB_PWD)"
# python /home/vsts/work/1/s/scripts/live_test/upload.py "$(System.ArtifactsDirectory)" "$(ACCOUNT_KEY)" "$(USER_LIVE)"
# Clean resources
Expand Down

0 comments on commit 97b23f1

Please sign in to comment.