-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Publish test package at AGENT_WORKFOLDER if TEMP is not available #8108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it possible to have both
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. $env:TEMP should be set in most cases. VSTS macOS hosts seem to be the only place where it is not set. $env:TF_BUILD is always set in VSTS builds. I will keep this as is for now. If we see problems we can address them. |
||
| $null = New-Item -ItemType Directory -Path $packageRoot -Force | ||
| $packagePath = Join-Path $Destination "TestPackage.zip" | ||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.