I am able to successfully clone a git repository using jenkins
source code management.
Now, I want to create a zip folder
of the cloned project and want to exclude
.git
and .gitignore
folder/file.
I also want to create the zip file one directory above to the current project.
I have so far written below but it is not creating the archive as per the requirement.
git archive -o project.zip HEAD