From 4756586321d5fc1ca261aa0dbac83b742e916613 Mon Sep 17 00:00:00 2001 From: Fatih Degirmenci Date: Thu, 26 Mar 2015 23:40:11 +0100 Subject: [PATCH] Enable cache for fuel build Use common cache for all build jobs. JIRA: OCTO-11 Change-Id: If242c87e2b6231101744dbb822ca71b8a9e80614 Signed-off-by: Fatih Degirmenci --- jjb/genesis/genesis.yml | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/jjb/genesis/genesis.yml b/jjb/genesis/genesis.yml index 843d4b32d..8c5ffbd38 100644 --- a/jjb/genesis/genesis.yml +++ b/jjb/genesis/genesis.yml @@ -151,8 +151,6 @@ project-type: freestyle - disabled: true - node: ericsson-build parameters: @@ -232,8 +230,15 @@ set -o pipefail set -x + # set/create the cache location + OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache" + [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE + + # do the build cd $WORKSPACE/fuel/ci - ./build.sh $BUILD_DIRECTORY + ./build.sh -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY + + # list the build artifacts ls -al $BUILD_DIRECTORY - builder: @@ -246,8 +251,15 @@ set -o pipefail set -x + # set/create the cache location + OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache" + [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE + + # do the build cd $WORKSPACE/fuel/ci - ./build.sh -f t $BUILD_DIRECTORY + ./build.sh -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY + + # list the build artifacts ls -al $BUILD_DIRECTORY - builder: @@ -260,8 +272,15 @@ set -o pipefail set -x + # set/create the cache location + OPNFV_FUEL_CACHE="$(dirname $WORKSPACE)/opnfv_fuel_cache" + [[ -d $OPNFV_FUEL_CACHE ]] || mkdir -p $OPNFV_FUEL_CACHE + + # do the build cd $WORKSPACE/fuel/ci - ./build.sh -f t $BUILD_DIRECTORY + ./build.sh -f t -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY + + # list the build artifacts ls -al $BUILD_DIRECTORY - builder: -- 2.16.6