summaryrefslogtreecommitdiffstats
path: root/jjb/barometer/barometer-build.sh
blob: 5f78aae7a18fd8128dde96792f10975d064c29c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
set -x

OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S")
OPNFV_ARTIFACT_URL="$GS_URL/$OPNFV_ARTIFACT_VERSION/"

# log info to console
echo "Starting the build of Barometer RPMs"
echo "------------------------------------"
echo

cd ci
./install_dependencies.sh
./build_rpm.sh
cp utility/rpms_list $WORKSPACE
cd $WORKSPACE

# save information regarding artifact into file
(
    echo "OPNFV_ARTIFACT_VERSION=$OPNFV_ARTIFACT_VERSION"
    echo "OPNFV_ARTIFACT_URL=$OPNFV_ARTIFACT_URL"
) > $WORKSPACE/opnfv.properties