CI: Check secrets before deleting test deployment

This commit is contained in:
Hosung Song 2018-04-20 14:51:15 -07:00
Родитель 84633d529e
Коммит 4546c114e8
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -28,4 +28,4 @@ cache:
script: ./etc/travis.sh script: ./etc/travis.sh
after_script: # Teardown group and created resource after build. after_script: # Teardown group and created resource after build.
- az login --service-principal -u "$SPNAME" -p "$SPPASSWORD" --tenant "$SPTENANT" && az group delete -g azmdl-travis-$TRAVIS_BUILD_NUMBER -y --no-wait - [ -n "$SPNAME" -a -n "$SPPASSWORD" -a -n "$SPTENANT" ] && az login --service-principal -u "$SPNAME" -p "$SPPASSWORD" --tenant "$SPTENANT" && az group delete -g azmdl-travis-$TRAVIS_BUILD_NUMBER -y --no-wait