Zipping of a hidden file with a Jar file using Jenkins

Hi i would like to know how to zip a hidden file example .platform with my jar file using Jenkins only, If that’s possible and will be uploading it to AWS Elastic Beanstalk. I have created a freestyle project and using file operations plugin after the execute shell step to zip the two files but i’m unable to as it zips only either of the one files.