From 7249b6fad089c00def124d5f727974dd50d8eab7 Mon Sep 17 00:00:00 2001 From: MatthewLi Date: Thu, 31 Dec 2015 03:53:03 -0500 Subject: add default parameters and workspace cleanup builder for bottlenecks upload job JIRA: BOTTLENECK-4 Change-Id: I2a9dd66a9312bceba913825bd506dfb18b217327 Signed-off-by: MatthewLi --- jjb/bottlenecks/bottlenecks.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'jjb') 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 ####################### -- cgit 1.2.3-korg