summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthewLi <matthew.lijun@huawei.com>2015-12-31 03:53:03 -0500
committerMatthewLi <matthew.lijun@huawei.com>2015-12-31 03:57:53 -0500
commit7249b6fad089c00def124d5f727974dd50d8eab7 (patch)
treef01c349d37faaeb48cc0e24255635a9b675d64a7
parentff24a9bb479b4ac49541796753b6e962c08f5c48 (diff)
add default parameters and workspace cleanup builder for bottlenecks upload job
JIRA: BOTTLENECK-4 Change-Id: I2a9dd66a9312bceba913825bd506dfb18b217327 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
-rw-r--r--jjb/bottlenecks/bottlenecks.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/jjb/bottlenecks/bottlenecks.yml b/jjb/bottlenecks/bottlenecks.yml
index eef0bf434..f15aa8f7c 100644
--- a/jjb/bottlenecks/bottlenecks.yml
+++ b/jjb/bottlenecks/bottlenecks.yml
@@ -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}'
@@ -241,6 +243,17 @@
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
#######################