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

Ability to 'exclude' files in Archive for Clone Workspace SCM

      It would be nice to be able to have a concept of both includes and excludes in the Archive for Clone Workspace SCM field. I came across a case where it would have been handy to be able to say 'include /* and exclude thisfile.txt.' Something as simple as a preceding ! might be a simple convention familiar to most people. So you could put '/*, !thisfile.txt' in the file list.

          [JENKINS-9582] Ability to 'exclude' files in Archive for Clone Workspace SCM

          Ed Randall added a comment -

          We would find this feature useful also, a second pattern row for "exclude patterns" would make it much easier to filter the files to be cloned. This would bring it work more in line with the claimed Ant-style patterns.

          Ed Randall added a comment - We would find this feature useful also, a second pattern row for "exclude patterns" would make it much easier to filter the files to be cloned. This would bring it work more in line with the claimed Ant-style patterns.

          David Kruger added a comment -

          David Kruger added a comment - Put in a pull request for a proposed fix: https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/pull/1

          Code changed in jenkins
          User: Andrew Bayer
          Path:
          src/main/java/hudson/plugins/cloneworkspace/CloneWorkspacePublisher.java
          src/main/java/hudson/plugins/cloneworkspace/CloneWorkspaceSCM.java
          src/main/java/hudson/plugins/cloneworkspace/CloneWorkspaceUtil.java
          src/main/resources/hudson/plugins/cloneworkspace/CloneWorkspacePublisher/config.jelly
          src/main/webapp/archiveMethod.html
          src/main/webapp/workspaceExcludeGlob.html
          http://jenkins-ci.org/commit/jenkins-clone-workspace-scm-plugin/46807bc668132b4e916dd275f77fb20efc88553e
          Log:
          Merge pull request #1 from dkruger/master

          Proposed fixes for JENKINS-9582 and JENKINS-9577

          Compare: https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/compare/8c64c38...46807bc

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: src/main/java/hudson/plugins/cloneworkspace/CloneWorkspacePublisher.java src/main/java/hudson/plugins/cloneworkspace/CloneWorkspaceSCM.java src/main/java/hudson/plugins/cloneworkspace/CloneWorkspaceUtil.java src/main/resources/hudson/plugins/cloneworkspace/CloneWorkspacePublisher/config.jelly src/main/webapp/archiveMethod.html src/main/webapp/workspaceExcludeGlob.html http://jenkins-ci.org/commit/jenkins-clone-workspace-scm-plugin/46807bc668132b4e916dd275f77fb20efc88553e Log: Merge pull request #1 from dkruger/master Proposed fixes for JENKINS-9582 and JENKINS-9577 Compare: https://github.com/jenkinsci/jenkins-clone-workspace-scm-plugin/compare/8c64c38...46807bc

          Code changed in jenkins
          User: Andrew Bayer
          Path:
          src/main/java/hudson/plugins/cloneworkspace/CloneWorkspacePublisher.java
          src/main/resources/hudson/plugins/cloneworkspace/CloneWorkspacePublisher/config.jelly
          src/test/java/hudson/plugins/cloneworkspace/CloneWorkspaceSCMTest.java
          http://jenkins-ci.org/commit/jenkins-clone-workspace-scm-plugin/a92fbe254e800b81720f91f2dcde09ffcf92b5d4
          Log:
          Fixing test compilation due to changes for JENKINS-9582 and JENKINS-9577.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: src/main/java/hudson/plugins/cloneworkspace/CloneWorkspacePublisher.java src/main/resources/hudson/plugins/cloneworkspace/CloneWorkspacePublisher/config.jelly src/test/java/hudson/plugins/cloneworkspace/CloneWorkspaceSCMTest.java http://jenkins-ci.org/commit/jenkins-clone-workspace-scm-plugin/a92fbe254e800b81720f91f2dcde09ffcf92b5d4 Log: Fixing test compilation due to changes for JENKINS-9582 and JENKINS-9577 .

            abayer Andrew Bayer
            owenmehegan Owen Mehegan
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: