From: Fatih Degirmenci Date: Thu, 26 Mar 2015 22:40:11 +0000 (+0100) Subject: Enable cache for fuel build X-Git-Tag: arno.2015.1.0~151 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=4756586321d5fc1ca261aa0dbac83b742e916613;p=releng.git Enable cache for fuel build Use common cache for all build jobs. JIRA: OCTO-11 Change-Id: If242c87e2b6231101744dbb822ca71b8a9e80614 Signed-off-by: Fatih Degirmenci --- 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: