summaryrefslogtreecommitdiffstats
path: root/jjb/bottlenecks/bottlenecks-ci-jobs.yml
diff options
context:
space:
mode:
authorYang Yu <Gabriel.yuyang@huawei.com>2017-09-12 17:11:28 +0800
committerYang Yu <Gabriel.yuyang@huawei.com>2017-09-12 17:15:29 +0800
commitb785bca8465636dcf1a9af56be0a8f7079ea31a7 (patch)
treefaa8e3cdbae45a23e067183a50d841606bbec082 /jjb/bottlenecks/bottlenecks-ci-jobs.yml
parentf51249c644d7535999eef5ec5f0e6f4ecb780d66 (diff)
Bug-fix: Cleanup Workspace after Testing
JIRA: BOTTLENECK-196 RT Change-Id: If98c2cf3636f5f65006f7418851e8d2a63a712fa Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
Diffstat (limited to 'jjb/bottlenecks/bottlenecks-ci-jobs.yml')
-rw-r--r--jjb/bottlenecks/bottlenecks-ci-jobs.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/jjb/bottlenecks/bottlenecks-ci-jobs.yml b/jjb/bottlenecks/bottlenecks-ci-jobs.yml
index a8654d0cf..e7878f883 100644
--- a/jjb/bottlenecks/bottlenecks-ci-jobs.yml
+++ b/jjb/bottlenecks/bottlenecks-ci-jobs.yml
@@ -126,6 +126,7 @@
builders:
- 'bottlenecks-env-cleanup'
- 'bottlenecks-run-suite'
+ - 'bottlenecks-workspace-cleanup'
publishers:
- email:
@@ -147,6 +148,18 @@
- shell:
!include-raw: ./bottlenecks-run-suite.sh
+- builder:
+ name: bottlenecks-workspace-cleanup
+ builders:
+ - shell: |
+ #!/bin/bash
+ set -o errexit
+ set -o nounset
+ set -o pipefail
+
+ # delete everything that is in $WORKSPACE
+ /bin/rm -rf $WORKSPACE
+
####################
# parameter macros
####################