Code cleanup & minor fixes (#415)
* remove AddPasswordSetting(), override the build output zip file if exists
This commit is contained in:
parent
a49bdce666
commit
9fcbc0c1a5
|
@ -40,8 +40,8 @@ try
|
|||
Copy-Item -Path $buildLog -Destination "$($Bucket)_symbols\" -Force -ErrorAction SilentlyContinue
|
||||
|
||||
$unitTestPaths = Get-ChildItem "$repolocation\UnitTests\*" -Directory
|
||||
Compress-Archive -path $unitTestPaths.FullName -DestinationPath "$repolocation\$($Bucket)_symbols\$UnitTestFolder"
|
||||
Compress-Archive -path "$repolocation\$($Bucket)_symbols\*" -DestinationPath "$destination\$($Bucket)_symbols"
|
||||
Compress-Archive -path $unitTestPaths.FullName -DestinationPath "$repolocation\$($Bucket)_symbols\$UnitTestFolder" -Force
|
||||
Compress-Archive -path "$repolocation\$($Bucket)_symbols\*" -DestinationPath "$destination\$($Bucket)_symbols" -Force
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
@ -341,13 +341,6 @@ Class Machine
|
|||
}
|
||||
}
|
||||
|
||||
[void] AddPasswordSetting([string] $pass) {
|
||||
if ($this.Platform -eq [PlatformType]::Windows) {
|
||||
if (-not($env:DISPLAY)) {$env:DISPLAY=1}
|
||||
$env:SSH_ASKPASS="$($env:ComSpec) /c echo $pass"
|
||||
}
|
||||
}
|
||||
|
||||
[void] CleanupPasswordSetting() {
|
||||
if ($this.Platform -eq [PlatformType]::Windows -and (Test-Path env:SSH_ASKPASS))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue