clean the workspace in the publisher
[releng.git] / jjb / global / releng-macros.yaml
index b282cff..d2da7f6 100644 (file)
                 - shell:
                     !include-raw: installer-report.sh
           mark-unstable-if-failed: true
+
+- publisher:
+    name: 'post-clean-workspace'
+    publishers:
+      - postbuildscript:
+          builders:
+            - role: SLAVE
+              build-on:
+                - ABORTED
+                - FAILURE
+                - NOT_BUILT
+                - UNSTABLE
+                - SUCCESS
+              build-steps:
+                - shell: |
+                    #!/bin/bash
+                    set -o errexit
+                    set -o nounset
+                    set -o pipefail
+                    sudo /bin/rm -rf "$WORKSPACE"