8 echo "Starting the build of $INSTALLER_TYPE. This could take some time..."
9 echo "--------------------------------------------------------"
12 # create the cache directory if it doesn't exist
13 [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY
14 [[ -d $BUILD_DIRECTORY ]] || mkdir -p $BUILD_DIRECTORY
16 # set OPNFV_ARTIFACT_VERSION
17 export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S")
18 export PACKAGE_URL=$PPA_REPO
23 cp $PPA_CACHE/*.tar.gz $PPA_CACHE/*.iso $PPA_CACHE/*.img $CACHE_DIRECTORY/ -f
27 ./build.sh --iso-dir $BUILD_DIRECTORY/ --iso-name compass.iso -c $CACHE_DIRECTORY
29 # list the build artifacts
30 ls -al $BUILD_DIRECTORY
32 # save information regarding artifact into file
34 echo "OPNFV_ARTIFACT_VERSION=$OPNFV_ARTIFACT_VERSION"
35 echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)"
36 echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)"
37 echo "OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso"
38 echo "OPNFV_ARTIFACT_SHA512SUM=$(sha512sum $BUILD_DIRECTORY/compass.iso | cut -d' ' -f1)"
39 echo "OPNFV_BUILD_URL=$BUILD_URL"
40 ) > $BUILD_DIRECTORY/opnfv.properties
42 echo "--------------------------------------------------------"