jenkinsci / file-operations-plugin

File Operations as Build Step in Jenkins
https://plugins.jenkins.io/file-operations
33 stars 31 forks source link

Enhance fileZipOperation to zip a list of files and folders #133

Open majdi21 opened 1 month ago

majdi21 commented 1 month ago

What feature do you want to see added?

Hello,

I want to be able to zip a list of files and folder, not just a folder. Here are some details.

Say I have a folder called contents, with a subfolder called files. Under files, I have the following files a.txt, b.txt, and c.txt. I also have a file info.xml under the folder contents. Here is a visual of that structure:

Image

When I use fileZipOperation, I have to specify a folder which means I have to specify the folder contents. This results in a zip file containing the directory contents and all of its contents.

But I want to zip the contents of the contents folder without having the contents folder in the zip file.

In other words instead of this:

package.zip Image

I want the zip file to look like this:

package.zip Image

Upstream changes

No response

Are you interested in contributing this feature?

No response

majdi21 commented 1 week ago

@jonesbusy A day after I posted this request, I got an email from "Mohit Uchit" on this issue. It looked like a normal reply. But I can't see the reply on the issue. I'm not sure why. Maybe Mohit deleted the response? Any idea?

jonesbusy commented 1 week ago

I'm not sure. I'm not activeley adding feature on this plugin. Just to keep it updated and review contributions if any