The plugin available to archive artifacts doesn't allow to chose to archive hidden files/directories like .git, .svn, etc. This feature will help Continuous Integration teams to upstream the .git information to be used for example to get last commit hash, repository server, etc.
Today, the plugin that copy the workspace is not useful when you do not need more than that artifacts, ans, in some cases, the repository is big.
Maybe, the plugin can be changed to allow the copy, by selecting the file types.
I am talking about to change the plugin "Archive Artifact" and "Copy Artifact".