Use common cache for all build jobs.
JIRA: OCTO-11
Change-Id: If242c87e2b6231101744dbb822ca71b8a9e80614
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
node: ericsson-build
parameters:
node: ericsson-build
parameters:
+ # 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
- ./build.sh $BUILD_DIRECTORY
+ ./build.sh -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY
+
+ # list the build artifacts
ls -al $BUILD_DIRECTORY
- builder:
ls -al $BUILD_DIRECTORY
- builder:
+ # 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
- ./build.sh -f t $BUILD_DIRECTORY
+ ./build.sh -c file://$OPNFV_FUEL_CACHE $BUILD_DIRECTORY
+
+ # list the build artifacts
ls -al $BUILD_DIRECTORY
- builder:
ls -al $BUILD_DIRECTORY
- builder:
+ # 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
- ./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:
ls -al $BUILD_DIRECTORY
- builder: