Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61495

Git files shall be included in zip

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      jenkins 2.204.1
      pipeline 2.39
      pipeline-utility-steps 2.5.0
    • Similar Issues:

      Description

      Several files are excluded per default by the ANT scanner. In my case the content of the release repository is generated by Jenkins but the .gitignore is removed from the ZIP.

      There shall be an option to include all files in the ZIP.

      From ANT sources:

          /**
           * Patterns which should be excluded by default.
           *
           * <p>Note that you can now add patterns to the list of default
           * excludes.  Added patterns will not become part of this array
           * that has only been kept around for backwards compatibility
           * reasons.</p>
           *
           * @deprecated since 1.6.x.
           *             Use the {@link #getDefaultExcludes getDefaultExcludes}
           *             method instead.
           */
          protected static final String[] DEFAULTEXCLUDES = {
              // Miscellaneous typical temporary files
              SelectorUtils.DEEP_TREE_MATCH + "/*~",
              SelectorUtils.DEEP_TREE_MATCH + "/#*#",
              SelectorUtils.DEEP_TREE_MATCH + "/.#*",
              SelectorUtils.DEEP_TREE_MATCH + "/%*%",
              SelectorUtils.DEEP_TREE_MATCH + "/._*",
      
              // CVS
              SelectorUtils.DEEP_TREE_MATCH + "/CVS",
              SelectorUtils.DEEP_TREE_MATCH + "/CVS/" + SelectorUtils.DEEP_TREE_MATCH,
              SelectorUtils.DEEP_TREE_MATCH + "/.cvsignore",
      
              // SCCS
              SelectorUtils.DEEP_TREE_MATCH + "/SCCS",
              SelectorUtils.DEEP_TREE_MATCH + "/SCCS/" + SelectorUtils.DEEP_TREE_MATCH,
      
              // Visual SourceSafe
              SelectorUtils.DEEP_TREE_MATCH + "/vssver.scc",
      
              // Subversion
              SelectorUtils.DEEP_TREE_MATCH + "/.svn",
              SelectorUtils.DEEP_TREE_MATCH + "/.svn/" + SelectorUtils.DEEP_TREE_MATCH,
      
              // Git
              SelectorUtils.DEEP_TREE_MATCH + "/.git",
              SelectorUtils.DEEP_TREE_MATCH + "/.git/" + SelectorUtils.DEEP_TREE_MATCH,
              SelectorUtils.DEEP_TREE_MATCH + "/.gitattributes",
              SelectorUtils.DEEP_TREE_MATCH + "/.gitignore",
              SelectorUtils.DEEP_TREE_MATCH + "/.gitmodules",
      
              // Mercurial
              SelectorUtils.DEEP_TREE_MATCH + "/.hg",
              SelectorUtils.DEEP_TREE_MATCH + "/.hg/" + SelectorUtils.DEEP_TREE_MATCH,
              SelectorUtils.DEEP_TREE_MATCH + "/.hgignore",
              SelectorUtils.DEEP_TREE_MATCH + "/.hgsub",
              SelectorUtils.DEEP_TREE_MATCH + "/.hgsubstate",
              SelectorUtils.DEEP_TREE_MATCH + "/.hgtags",
      
              // Bazaar
              SelectorUtils.DEEP_TREE_MATCH + "/.bzr",
              SelectorUtils.DEEP_TREE_MATCH + "/.bzr/" + SelectorUtils.DEEP_TREE_MATCH,
              SelectorUtils.DEEP_TREE_MATCH + "/.bzrignore",
      
              // Mac
              SelectorUtils.DEEP_TREE_MATCH + "/.DS_Store"
          };
      

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            rsandell rsandell
            Reporter:
            mifoe MiFoe
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: