Skip to content
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

##[error]The given path's format is not supported. #52

Closed
johnpenmanweb opened this issue Aug 15, 2016 · 1 comment
Closed

##[error]The given path's format is not supported. #52

johnpenmanweb opened this issue Aug 15, 2016 · 1 comment

Comments

@johnpenmanweb
Copy link

johnpenmanweb commented Aug 15, 2016

TFS 2015 Update 2 On Prem.

Using Zip A Folder Build Step

Getting the following error: 2016-08-15T13:49:11.5749241Z ##[error]The given path's format is not supported. Does it matter if there are sub directories in the folder I am trying to zip?

Properties Page:
Path to Folder: Tried hard coded as shown and using TFS variables to same path
e:\Build\Hybris\hybris\bin\Custom\8\a
Path to the zip file: Tried hard coded as shown and using TFS variables to Staging path
e:\Builds$(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.r)\custom.zip

Advanced: Overwrite zip file: True

Control Options: Enabled True, all others false

I've done a dir of the folder that is to be zip to make sure there are files, results listed in attached file:

1_Build.txt

@harshil93
Copy link
Member

https://github.com/openalm/Extension-UtilitiesPack/blob/master/Utilites/Zip/zip.ps1

It uses the .net compression function which is a one liner and it does handle sub directories. Please run these two commands with variables set properly to see whether it is succeeding or not.

Add-Type -A System.IO.Compression.FileSystem [IO.Compression.ZipFile]::CreateFromDirectory($pathToZipFolder, $pathToZipFile)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants