Add git commit details to stress environment (#5280)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
parent
f109f63f4e
commit
b1796ab919
@ -321,7 +321,18 @@ function DeployStressPackage(
|
||||
$generatedConfigPath = Join-Path $pkg.Directory generatedValues.yaml
|
||||
$subCommand = $Template ? "template" : "upgrade"
|
||||
$subCommandFlag = $Template ? "--debug" : "--install"
|
||||
$helmCommandArg = "helm", $subCommand, $releaseName, $pkg.Directory, "-n", $pkg.Namespace, $subCommandFlag, "--values", $generatedConfigPath, "--set", "stress-test-addons.env=$environment"
|
||||
$helmCommandArg = @(
|
||||
"helm", $subCommand, $releaseName, $pkg.Directory,
|
||||
"-n", $pkg.Namespace,
|
||||
$subCommandFlag,
|
||||
"--values", $generatedConfigPath,
|
||||
"--set", "stress-test-addons.env=$environment"
|
||||
)
|
||||
|
||||
$gitCommit = git -C $pkg.Directory rev-parse HEAD 2>&1
|
||||
if (!$LASTEXITCODE) {
|
||||
$helmCommandArg += "--set", "GitCommit=$gitCommit"
|
||||
}
|
||||
|
||||
if ($LockDeletionForDays) {
|
||||
$date = (Get-Date).AddDays($LockDeletionForDays).ToUniversalTime()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user