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

Allow disabling use of default exclude patterns (.git, .svn, etc.) for archiving

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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".

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: nlabrot
            Path:
            core/src/main/java/hudson/tasks/ArtifactArchiver.java
            core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly
            core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties
            core/src/main/resources/hudson/tasks/ArtifactArchiver/config_fr.properties
            core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.groovy
            core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.properties
            core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes_fr.properties
            test/src/test/java/hudson/tasks/ArtifactArchiverTest.java
            http://jenkins-ci.org/commit/jenkins/c726667162084e0199cea858735d35477d04feb9
            Log:
            [FIXED JENKINS-20086] Allow disabling use of default exclude patterns (.git, .svn, etc.)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: nlabrot Path: core/src/main/java/hudson/tasks/ArtifactArchiver.java core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties core/src/main/resources/hudson/tasks/ArtifactArchiver/config_fr.properties core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.groovy core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.properties core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes_fr.properties test/src/test/java/hudson/tasks/ArtifactArchiverTest.java http://jenkins-ci.org/commit/jenkins/c726667162084e0199cea858735d35477d04feb9 Log: [FIXED JENKINS-20086] Allow disabling use of default exclude patterns (.git, .svn, etc.)
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oleg Nenashev
            Path:
            core/src/main/java/hudson/tasks/ArtifactArchiver.java
            core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly
            core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties
            core/src/main/resources/hudson/tasks/ArtifactArchiver/config_fr.properties
            core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.groovy
            core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.properties
            core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes_fr.properties
            test/src/test/java/hudson/tasks/ArtifactArchiverTest.java
            http://jenkins-ci.org/commit/jenkins/6d5c25ae7e88fa2e870209b4fe2e55b7b75fc0aa
            Log:
            Merge pull request #1287 from nithril/master

            [FIXED JENKINS-20086] Allow disabling use of default exclude patterns (.git, .svn, etc.)

            Compare: https://github.com/jenkinsci/jenkins/compare/65bc0fb146bf...6d5c25ae7e88

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/src/main/java/hudson/tasks/ArtifactArchiver.java core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties core/src/main/resources/hudson/tasks/ArtifactArchiver/config_fr.properties core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.groovy core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.properties core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes_fr.properties test/src/test/java/hudson/tasks/ArtifactArchiverTest.java http://jenkins-ci.org/commit/jenkins/6d5c25ae7e88fa2e870209b4fe2e55b7b75fc0aa Log: Merge pull request #1287 from nithril/master [FIXED JENKINS-20086] Allow disabling use of default exclude patterns (.git, .svn, etc.) Compare: https://github.com/jenkinsci/jenkins/compare/65bc0fb146bf...6d5c25ae7e88
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3490
            [FIXED JENKINS-20086] Allow disabling use of default exclude patterns (.git, .svn, etc.) (Revision c726667162084e0199cea858735d35477d04feb9)

            Result = SUCCESS
            nithril : c726667162084e0199cea858735d35477d04feb9
            Files :

            • core/src/main/resources/hudson/tasks/ArtifactArchiver/config_fr.properties
            • core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.groovy
            • core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties
            • core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes_fr.properties
            • test/src/test/java/hudson/tasks/ArtifactArchiverTest.java
            • core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.properties
            • core/src/main/java/hudson/tasks/ArtifactArchiver.java
            • core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3490 [FIXED JENKINS-20086] Allow disabling use of default exclude patterns (.git, .svn, etc.) (Revision c726667162084e0199cea858735d35477d04feb9) Result = SUCCESS nithril : c726667162084e0199cea858735d35477d04feb9 Files : core/src/main/resources/hudson/tasks/ArtifactArchiver/config_fr.properties core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.groovy core/src/main/resources/hudson/tasks/ArtifactArchiver/config.properties core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes_fr.properties test/src/test/java/hudson/tasks/ArtifactArchiverTest.java core/src/main/resources/hudson/tasks/ArtifactArchiver/help-defaultExcludes.properties core/src/main/java/hudson/tasks/ArtifactArchiver.java core/src/main/resources/hudson/tasks/ArtifactArchiver/config.jelly
            Hide
            jess Gordon Jess added a comment -

            Sorry, still experiencing the issue, 

            pipeline code:

            archiveArtifacts artifacts: '*/', defaultExcludes: false, onlyIfSuccessful: true

            Show
            jess Gordon Jess added a comment - Sorry, still experiencing the issue,  pipeline code: archiveArtifacts artifacts: '*/', defaultExcludes: false, onlyIfSuccessful: true
            Hide
            danielbeck Daniel Beck added a comment -

            Gordon Jess Works for me on Jenkins 2.89.3 and up to date plugins (sample Jenkinsfile: https://github.com/daniel-beck/pipeline-test/blob/43a0602597dd80995afa1714928a4b0e643ff18e/Jenkinsfile ). Please make sure you're not trying to archive in the wrong directory. Please file a new bug with complete and detailed steps to reproduce.

            Show
            danielbeck Daniel Beck added a comment - Gordon Jess Works for me on Jenkins 2.89.3 and up to date plugins (sample Jenkinsfile: https://github.com/daniel-beck/pipeline-test/blob/43a0602597dd80995afa1714928a4b0e643ff18e/Jenkinsfile ). Please make sure you're not trying to archive in the wrong directory. Please file a new bug with complete and detailed steps to reproduce.

              People

              Assignee:
              nithril Nicolas Labrot
              Reporter:
              eduardodias Eduardo Dias
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: