We have a Jenkins pipeline and I want to zip multiple files(.py and .cfg) located in multiple directories within my workspace. Is there a way we can pass multiple values to dir option of the zip method?
zip (zipFile: "package.zip", dir: "${WORKSPACE}/infra/folder1/")
P.S: I can add an additional stage before zip process and move all the required files to a folder and archive that folder using above zip method, but I would like to avoid an additional step/stage