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".
- is related to
-
JENKINS-14355 Allow disabling use of default exclude patterns (.git, .svn, etc.) for fingerprinting
-
- Open
-
While it's a fair amount of hackery you can do this to work around this limitation:
1. use 7-Zip to package up your workspace
2. archive the zip file as an artifact
3. copy the zip file as an artifact to your next pipeline build
4. unzip the zip file
5. do your normal build steps