I am using Go Version: 2.3.1(14065-5593a5e73beeca). From the pipeline I am running a powershell script. There I am trying to unzip a folder. So I have used the conventional way of unziping a file(below line).
$destinationFolder.CopyHere($zipPackage.Items(), 16)
But it is not unziping the file as expected. This I think is a issue with the GO server as when I run the same script directly it workes perfectly.
I am in Windows 2008 R2 server. Can anyone please share some lights on this?
Comments
6 comments
Hi Anupam,
any specific reasons you are using Go 2.3? It's 2 years old and is out of support.
Please do upgrade to a more recent version.
Marco
Actually this is provided environment and we have to work on this only. So can you please tell me that if this issue exists for this version? And if we move to latest versions this issue will not happen?
Hi again,
I'm not aware of any specific issues on that front though I will try and do a quick search around to see if anything comes up.
As mentioned we are not able to provide feedback on a 2 years old version which has been out of support for more than a year now. If it helps there are no reports of any issues with that functionality in the supported versions. For a list of everything that has changed since 2.3.1 please take a look at the What's New Page here.
Marco
Thank you Marco.
I have the same issue with the latest Go Server v13.4. I don't think this is an issue with Go even though I understand that the script works correctly when executed directly on Go Agent.
I think it has something to do with Shell.Application CopyHere not working when executed inside a shell. I haven't find any solution (except to use .net zip provider). If you find a way to get it working with Shell.APplication, please let me know.
Replace Shell.Application with .Net zip provider. Its works and is much faster:
Add-Type -AssemblyName System.IO.Compression.FileSystem -ErrorAction Stop
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipFilename, $destination)
Please sign in to leave a comment.