summaryrefslogtreecommitdiffstats
path: root/jjb/genesis/genesis.yml
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-03-26 23:40:11 +0100
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2015-03-26 23:49:55 +0100
commit4756586321d5fc1ca261aa0dbac83b742e916613 (patch)
tree20bda0bf6e977ed87a5ca4416d1dc157a8614e1f /jjb/genesis/genesis.yml
parentaff59dd1427ff15d8604c57e047a59726e604d62 (diff)
Enable cache for fuel build
Use common cache for all build jobs. JIRA: OCTO-11 Change-Id: If242c87e2b6231101744dbb822ca71b8a9e80614 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/genesis/genesis.yml')
-rw-r--r--jjb/genesis/genesis.yml29
1 files 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: