diff --git a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 index 60a567c4e8af..2e71a6bd7396 100644 --- a/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 +++ b/eng/common/scripts/stress-testing/stress-test-deployment-lib.ps1 @@ -257,7 +257,7 @@ function DeployStressPackage( if ($pkg.Dockerfile -or $pkg.DockerBuildDir) { throw "The chart.yaml docker config is deprecated, please use the scenarios matrix instead." } - + foreach ($dockerBuildConfig in $dockerBuildConfigs) { $dockerFilePath = $dockerBuildConfig.dockerFilePath @@ -285,7 +285,7 @@ function DeployStressPackage( $dockerBuildCmd += $dockerBuildFolder Run @dockerBuildCmd - + Write-Host "`nContainer image '$imageTag' successfully built. To run commands on the container locally:" -ForegroundColor Blue Write-Host " docker run -it $imageTag" -ForegroundColor DarkBlue Write-Host " docker run -it $imageTag " -ForegroundColor DarkBlue @@ -302,7 +302,7 @@ function DeployStressPackage( } } $generatedHelmValues.scenarios = @( foreach ($scenario in $generatedHelmValues.scenarios) { - $dockerPath = if ("image" -notin $scenario) { + $dockerPath = if ("image" -notin $scenario.keys) { $dockerFilePath } else { Join-Path $pkg.Directory $scenario.image @@ -476,7 +476,7 @@ function generateRetryTestsHelmValues ($pkg, $releaseName, $generatedHelmValues) $failedJobsScenario += $job.split("-$($pkg.ReleaseName)")[0] } } - + $releaseName = "$($pkg.ReleaseName)-$revision-retry" $retryTestsHelmVal = @{"scenarios"=@()}