Re: Zip and archive folder/sub folders

2022-06-10 Thread Ashwath Mendan
Hi , I'm looking for exclude option, looks like exclude is not working, can anyone share the working syntax for exclude with zip step? On Tuesday, March 21, 2017 at 9:33:50 PM UTC+5:30 jer...@bodycad.com wrote: > zip zipFile: "x64\\Release\\${APPLY_TAG}.zip", dir: > "x64\\Release\\${APPLY_TAG

Re: Zip and archive folder/sub folders

2017-03-21 Thread jerome
zip zipFile: "x64\\Release\\${APPLY_TAG}.zip", dir: "x64\\Release\\${APPLY_TAG}"; archiveArtifacts artifacts: "x64\\Release\\${APPLY_TAG}.zip", fingerprint: false, allowEmptyArchive: false, onlyIfSuccessful: true; This work for me, make sure your path are adapted to the platform (Unix vs Window

Re: Zip and archive folder/sub folders

2017-03-13 Thread 'Baswaraj Malage' via Jenkins Users
Thanks Jerome for all your suggestion. But, no luck to get files in zip. I did use zip directly (I had to separate commands with ,) but did not work for me. I might be missing something or jenkins yet to support this feature. zip zipFile: 'screen.zip', archive: true, dir: 'screenprint', glob: '

Re: Zip and archive folder/sub folders

2017-03-13 Thread Jérôme Godbout
No need to use 'bat' command, there is a zip command directly. Change: bat 'zip zipFile: \'screen.zip\' archive: true dir: \'screenprint\' glob: \'**/*.png\'' for this: zip zipFile: 'screen.zip' archive: true dir: 'screenprint' glob: '**/*.png' it should work directly [image: bodycad]

Re: Zip and archive folder/sub folders

2017-03-12 Thread 'Baswaraj Malage' via Jenkins Users
Hey Jerome I'm using latest stable version of Jenkins and my pipeline node script looks as below. node { > stage('checkout') { > git '...github link...' > } > stage('build and test') { > bat 'npm install' > bat 'npm run test' > } > stage('archive') { > bat 'zip zipFil

Re: Zip and archive folder/sub folders

2017-03-10 Thread Jérôme Godbout
which version of Jenkins are you using? zip was introduced not so long ago. Also make sure you call it inside a node {} [image: bodycad] Jerome Godbout Software Developer 2035 rue du Haut-Bord, Québec, QC, Canada. G1N 4R7 T: +1 418 527-1388 E: jer...@bodycad.com www.bo

Re: Zip and archive folder/sub folders

2017-03-09 Thread 'Baswaraj Malage' via Jenkins Users
> Thank you for your suggestions. However, I got below error on running zip > bat command. > zip zipFile: 'screen.zip' archive: true dir: 'screenprint' glob: '**/*.png' 'zip' is not recognized as an internal or external command, operable program or batch file. -Baswaraj -- You received th

Re: Zip and archive folder/sub folders

2017-03-09 Thread jerome
glob is the ant style syntax to fetch you png files: zip zipFile: 'screen.zip' archive: true dir: 'screenprint' glob: '**/*.png' Else you may want to create a folder and copy all the file into it then zip it. -- You received this message because you are subscribed to the Google Groups "Jenkin

Zip and archive folder/sub folders

2017-03-08 Thread 'Baswaraj Malage' via Jenkins Users
Hi Team I would like to know how to zip and archive folders/subfolders/*.png files in pipeline script. In my job workspace, I have a folder by name ScreenPrint which has 3 sub folders as chrome, firefox and phantom. Each sub folder would have .png files. So, I would like to zip and archive enti