Sync eng/common directory with azure-sdk-tools for PR 2578 (#3268)

* excluding duplicated env:USER in image tag

* NIT

* removing default repo name

Co-authored-by: Albert Cheng <albertcheng@microsoft.com>
This commit is contained in:
Azure SDK Bot 2022-01-21 16:57:41 -08:00 committed by GitHub
parent 118e598e3e
commit dd40de0606
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,12 +86,6 @@ function DeployStressTests(
$subscription = 'Azure SDK Test Resources'
}
if (!$repository) {
$repository = if ($env:USER) { $env:USER } else { "${env:USERNAME}" }
# Remove spaces, etc. that may be in $namespace
$repository -replace '\W'
}
if ($login) {
if (!$clusterGroup -or !$subscription) {
throw "clusterGroup and subscription parameters must be specified when logging into an environment that is not test or prod."