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

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

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          edrandall 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.

          Show
          edrandall 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.
          Hide
          dkruger David Kruger added a comment -
          Show
          dkruger 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
          Hide
          scm_issue_link 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

          Show
          scm_issue_link 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
          Hide
          scm_issue_link 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.

          Show
          scm_issue_link 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 .

            People

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

              Dates

              • Created:
                Updated:
                Resolved: