GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — Publish test package at AGENT_WORKFOLDER if TEMP is not available by adityapatwardhan · Pull Request #8108 · PowerShell/PowerShell Conversation
|
| $rootFolder = $env:AGENT_WORKFOLDER | ||
| } | ||
|
|
||
| $packageRoot = Join-Path $rootFolder ('TestPackage-' + (new-guid)) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to have both $env:Temp and $env:TF_BUILD be null? Maybe we should have a Test-Path here and throw an error message ... "package path cannot be found"?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.