[JIRA] [ws-cleanup-plugin] (JENKINS-30179) Exclude seems to be not working

51 views
Skip to first unread message

fredgungnir@gmail.com (JIRA)

unread,
Aug 27, 2015, 11:41:02 AM8/27/15
to jenkinsc...@googlegroups.com
f gun created an issue
 
Jenkins / Bug JENKINS-30179
Exclude seems to be not working
Issue Type: Bug Bug
Assignee: vjuranek
Components: ws-cleanup-plugin
Created: 27/Aug/15 3:40 PM
Environment: windows - jenkins 1.575 running on tomcat6
plugin version 0.28
Priority: Minor Minor
Reporter: f gun

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-cl...@0.28"><patterns><hudson.plugins.wscleanup.Pattern><pattern>.folder1/*/f2/f22//.*</pattern><type>EXCLUDE</type></hudson.plugins.wscleanup.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

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

fredgungnir@gmail.com (JIRA)

unread,
Aug 27, 2015, 1:24:01 PM8/27/15
to jenkinsc...@googlegroups.com
f gun updated an issue
Change By: f gun
Attachment: pluginConfig.txt
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-cl...@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

s.stautz85@gmail.com (JIRA)

unread,
Oct 5, 2015, 8:11:02 AM10/5/15
to jenkinsc...@googlegroups.com
Sebastian Stautz commented on Bug JENKINS-30179
 
Re: Exclude seems to be not working

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.

susaninnezloy@gmail.com (JIRA)

unread,
Jul 14, 2016, 10:10:01 AM7/14/16
to jenkinsc...@googlegroups.com

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.

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

susaninnezloy@gmail.com (JIRA)

unread,
Jul 14, 2016, 10:10:01 AM7/14/16
to jenkinsc...@googlegroups.com
Ivan Fedorov edited a comment on Bug JENKINS-30179
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.

susaninnezloy@gmail.com (JIRA)

unread,
Jul 14, 2016, 10:11:01 AM7/14/16
to jenkinsc...@googlegroups.com
Ivan Fedorov edited a comment on Bug JENKINS-30179
Hi, I've also faced with this problem. I've added only one exclude file like "

{noformat}
**/*/test.xml "
{noformat}
but nevertheless file was deleted during clean up.
Reply all
Reply to author
Forward
0 new messages