-
Notifications
You must be signed in to change notification settings - Fork 18
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
PackageWeb fails to unzip when run under a Windows Service account #48
Comments
Thanks for the bug report, will look into this. |
@sayedihashimi I was experiencing this issue and found an article explaining how to use the compression library in .NET 4.5. I have done some preliminary tests using this method and it seems to work when running the build in TeamCity with a service account. I wanted to know what I needed to include in my pull request to get this change included and released. |
@kpartusch thanks for the request. In general as long as your code works I'll take it in any shape. If you're asking what I think would be ideal, then continue reading. When I created PackageWeb I was very new to PowerShell. Because of that the code isn't the prettiest and likely does some funny things. Since then I've improved and I'd like to ensure that new code is good quality. For functions I'd like them to have
For an example of how I write PowerShell these days see one of my other repos for ex: https://github.com/ligershark/psbuild/blob/master/src/psbuild.psm1. |
I have made two adjustments in order to have Publish-Interactive.ps1 work with my "Release Management" definition. I call my install PowerShell with Remote PowerShell Task. So in my main script, I added a simple Write-Host fonction, thus overriding the build-in function. In the Publish-Interactive.ps1, I replaced the Extract-Zip function with the following code:
} |
For some reason when Publish-Interactive.ps1 is executed as a Windows Service (e.g. automated builds, continuous integration environments, etc.), it silently fails to extract the zip - no error message is indicated anywhere as to the reason why it doesn't unzip. Everything appears to function fine, with the exception to the following method call:
The text was updated successfully, but these errors were encountered: