Bug-fix: Cleanup Workspace after Testing 75/41675/2
authorYang Yu <Gabriel.yuyang@huawei.com>
Tue, 12 Sep 2017 09:11:28 +0000 (17:11 +0800)
committerYang Yu <Gabriel.yuyang@huawei.com>
Tue, 12 Sep 2017 09:15:29 +0000 (17:15 +0800)
JIRA: BOTTLENECK-196

RT

Change-Id: If98c2cf3636f5f65006f7418851e8d2a63a712fa
Signed-off-by: Yang Yu <Gabriel.yuyang@huawei.com>
jjb/bottlenecks/bottlenecks-ci-jobs.yml
jjb/bottlenecks/bottlenecks-project-jobs.yml

index a8654d0..e7878f8 100644 (file)
     builders:
       - 'bottlenecks-env-cleanup'
       - 'bottlenecks-run-suite'
+      - 'bottlenecks-workspace-cleanup'
 
     publishers:
       - email:
       - 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
 ####################
index c7c9b42..10f73b8 100644 (file)
@@ -28,8 +28,6 @@
           disabled: false
 
     suite:
-      - 'rubbos'
-      - 'vstf'
       - 'posca_stress_traffic'
       - 'posca_stress_ping'
 
 
     builders:
       - 'bottlenecks-builder-upload-artifact'
-      - 'bottlenecks-workspace-cleanup'
+      - 'bottlenecks-artifact-workspace-cleanup'
 
 ####################
 # parameter macros
           done
 
 - builder:
-    name: bottlenecks-workspace-cleanup
+    name: bottlenecks-artifact-workspace-cleanup
     builders:
       - shell: |
           #!/bin/bash