Publish test package at AGENT_WORKFOLDER if TEMP is not available (#8108)
This commit is contained in:
parent
082c3b0bae
commit
05e9f78bcb
|
@ -2997,7 +2997,13 @@ function New-TestPackage
|
|||
Write-Verbose -Message "Creating destination folder: $Destination"
|
||||
}
|
||||
|
||||
$packageRoot = Join-Path $env:TEMP ('TestPackage-' + (new-guid))
|
||||
$rootFolder = $env:TEMP
|
||||
|
||||
if (-not $rootFolder -and $env:TF_BUILD) {
|
||||
$rootFolder = $env:AGENT_WORKFOLDER
|
||||
}
|
||||
|
||||
$packageRoot = Join-Path $rootFolder ('TestPackage-' + (new-guid))
|
||||
$null = New-Item -ItemType Directory -Path $packageRoot -Force
|
||||
$packagePath = Join-Path $Destination "TestPackage.zip"
|
||||
|
||||
|
|
Loading…
Reference in a new issue