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

Exclude seems to be not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: ws-cleanup-plugin
    • Labels:
      None
    • Environment:
      windows - jenkins 1.575 running on tomcat6
      plugin version 0.28
    • Similar Issues:

      Description

      Hi,

      If I select:
      include -> .folder1/*/f2/f22//.*
      => only the folder f2/f22 and children are deleted which is what is expected

      I've configured this plugin to exclude a path I want to keep with this format:
      exclude -> .folder1/*/f2/f22//.*
      => this folder is deleted

      Am I doing something wrong or the exclude does not work as expected?

      Thanks,
      FGUN

        Attachments

          Issue Links

            Activity

            fgun f gun created issue -
            fgun f gun made changes -
            Field Original Value New Value
            Attachment pluginConfig.txt [ 30554 ]
            Description Hi,

            If I select:
            include -> .folder1/**/f2/f22/**/*.*
            => only the folder f2/f22 and children are deleted which is what is expected

            I've configured this plugin to exclude a path I want to keep with this format:
            exclude -> .folder1/**/f2/f22/**/*.*
            => this folder is deleted

            Am I doing something wrong or the exclude does not work as expected?

            <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.28"><patterns><hudson.plugins.ws__cleanup.Pattern><pattern>.folder1/**/f2/f22/**/*.*</pattern><type>EXCLUDE</type></hudson.plugins.ws__cleanup.Pattern></patterns><deleteDirs>true</deleteDirs><skipWhenFailed>false</skipWhenFailed><cleanWhenSuccess>true</cleanWhenSuccess><cleanWhenUnstable>true</cleanWhenUnstable><cleanWhenFailure>true</cleanWhenFailure><cleanWhenNotBuilt>true</cleanWhenNotBuilt><cleanWhenAborted>true</cleanWhenAborted><notFailBuild>true</notFailBuild><cleanupMatrixParent>false</cleanupMatrixParent><externalDelete/></hudson.plugins.ws__cleanup.WsCleanup>

            Thanks,
            FGUN
            Hi,

            If I select:
            include -> .folder1/**/f2/f22/**/*.*
            => only the folder f2/f22 and children are deleted which is what is expected

            I've configured this plugin to exclude a path I want to keep with this format:
            exclude -> .folder1/**/f2/f22/**/*.*
            => this folder is deleted

            Am I doing something wrong or the exclude does not work as expected?


            Thanks,
            FGUN
            Hide
            stautz85 Sebastian added a comment -

            I had this issue too, but while testing it disappeared
            I created a dump test job, just for testing this issue. In this job the exlcudes worked.
            And now it works at my working job.

            My working job just has single file as exclude.

            The test job had first an include and exclude. Then i removed the include
            I did multiple executions with both configurations.

            Show
            stautz85 Sebastian added a comment - I had this issue too, but while testing it disappeared I created a dump test job, just for testing this issue. In this job the exlcudes worked. And now it works at my working job. My working job just has single file as exclude. The test job had first an include and exclude. Then i removed the include I did multiple executions with both configurations.
            Hide
            ifedorov Ivan Fedorov added a comment - - edited

            Hi, I've also faced with this problem. I've added only one exclude file like

            **/*/test.xml
            

            but nevertheless file was deleted during clean up.

            Show
            ifedorov Ivan Fedorov added a comment - - edited Hi, I've also faced with this problem. I've added only one exclude file like **/*/test.xml but nevertheless file was deleted during clean up.
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 165266 ] JNJira + In-Review [ 181902 ]
            ext3h Andreas Ringlstetter made changes -
            Link This issue is related to JENKINS-50901 [ JENKINS-50901 ]
            grim Grim Reaper made changes -
            Link This issue relates to JENKINS-12783 [ JENKINS-12783 ]

              People

              Assignee:
              vjuranek vjuranek
              Reporter:
              fgun f gun
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated: