Cleanup workspace at end of build 79/40879/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 27 Jun 2016 14:42:55 +0000 (10:42 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 27 Jun 2016 15:03:43 +0000 (11:03 -0400)
Add to archive-build macro to cleanup workspace at end of build.

Change-Id: I387506eb526f4cc24eff08abdd1d4b0d47eb13dc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/releng-macros.yaml

index 4bc59d742030f23eb9a0ee5b98374cbd446c49ae..90e755d15d8e870625917ae2cd5645e08cc557d6 100644 (file)
     # To archive things the job will need to create a "archives" directory in
     # the workspace and this macro will handle copying the contents of the
     # archives directory.
+    # Also ensure that the workspace is cleaned up at the end of the build.
     publishers:
         - postbuildscript:
             builders:
             script-only-if-succeeded: False
             script-only-if-failed: False
             mark-unstable-if-failed: True
+        - workspace-cleanup:
+            fail-build: false
 
 - builder:
     name: wipe-org-opendaylight-repo