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 entire ScreenPrint folder with 
all subfolder/files to keep them separate for review. I did use below 
command which archived files but not separated by folders.

archiveArtifacts allowEmptyArchive: true, artifacts: 'screenprint/**', 
onlyIfSuccessful: true


When I looked @ 
https://jenkins.io/doc/pipeline/steps/pipeline-utility-steps/#code-zip-code-create-zip-file
 
to zip folders/files but could not get exact pipeline syntax to zip.

zip zipFile: 'screen.zip', glob: '', dir:'', archive: true 


Looking for some guidance to zip the folders using pipeline syntax.

Thanks
Baswaraj

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0dad7739-f539-4f16-96b1-999f8aaa6d38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to