Adjusted deletion of image-creator workspaces
authorEd Bartosh <eduard.bartosh@intel.com>
Sun, 15 Sep 2013 12:43:38 +0000 (15:43 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Sun, 15 Sep 2013 12:45:23 +0000 (15:45 +0300)
Without 'deleteDirs' enabled mic/ subdirectory letf untouched by
'delete workspace' plugin.

Change-Id: Iabd68652486d1ae8e504271b70b6d70698e0ed9c
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
jobs/image-creator/config.xml

index f0620d6..7de4879 100644 (file)
@@ -69,11 +69,16 @@ if(matcher?.matches()) {
       <behavior>0</behavior>
     </org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder>
     <hudson.plugins.ws__cleanup.WsCleanup plugin="ws-cleanup@0.16">
-      <deleteDirs>false</deleteDirs>
+      <patterns>
+        <hudson.plugins.ws__cleanup.Pattern>
+          <pattern></pattern>
+          <type>INCLUDE</type>
+        </hudson.plugins.ws__cleanup.Pattern>
+      </patterns>
+      <deleteDirs>true</deleteDirs>
       <skipWhenFailed>false</skipWhenFailed>
       <cleanWhenSuccess>true</cleanWhenSuccess>
-      <cleanWhenUnstable>true</cleanWhenUnstable>
-      <cleanWhenFailure>true</cleanWhenFailure>
+      <cleanWhenUnstable>true</cleanWhenUnstable>      <cleanWhenFailure>true</cleanWhenFailure>
       <cleanWhenNotBuilt>true</cleanWhenNotBuilt>
       <cleanWhenAborted>true</cleanWhenAborted>
       <notFailBuild>false</notFailBuild>