add default parameters and workspace cleanup builder for bottlenecks upload job 03/5403/2
authorMatthewLi <matthew.lijun@huawei.com>
Thu, 31 Dec 2015 08:53:03 +0000 (03:53 -0500)
committerMatthewLi <matthew.lijun@huawei.com>
Thu, 31 Dec 2015 08:57:53 +0000 (03:57 -0500)
JIRA: BOTTLENECK-4

Change-Id: I2a9dd66a9312bceba913825bd506dfb18b217327
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
jjb/bottlenecks/bottlenecks.yml

index eef0bf4..f15aa8f 100644 (file)
@@ -87,6 +87,7 @@
     parameters:
         - project-parameter:
             project: '{project}'
+        - 'ericsson-ca-build-1-defaults'
 
     scm:
         - git-scm:
@@ -96,6 +97,7 @@
 
     builders:
         - 'bottlenecks-builder-upload-artifact'
+        - 'bottlenecks-workspace-cleanup'
 
 - job-template:
     name: 'bottlenecks-daily-{installer}-{pod}-{stream}'
                  gsutil cp $CACHE_DIR/$file $RUBBOS_URL
             done
 
+- builder:
+    name: bottlenecks-workspace-cleanup
+    builders:
+        - shell: |
+            #!/bin/bash
+            set -o errexit
+
+            echo "Bottlenecks: cleanup cache used for storage downloaded packages"
+
+            /bin/rm -rf $WORKSPACE
+
 #######################
 #trigger macros
 #######################