[ansible][fedora] Update package name
[barometer.git] / ci / barometer-build.sh
1 # This script is used by the barometer-daily CI job in gitlab.
2 # It builds and packages collectd as an RPM
3 # After this script is run, the barometer-daily job runs the
4 # barometer-upload-artifact.sh script.
5 set -x
6
7 OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S")
8 OPNFV_ARTIFACT_URL="$GS_URL/$OPNFV_ARTIFACT_VERSION/"
9
10 # log info to console
11 echo "Starting the build of Barometer RPMs"
12 echo "------------------------------------"
13 echo
14
15 ./install_dependencies.sh
16 ./build_rpm.sh
17 cp utility/rpms_list $WORKSPACE
18
19 # save information regarding artifact into file
20 (
21     echo "OPNFV_ARTIFACT_VERSION=$OPNFV_ARTIFACT_VERSION"
22     echo "OPNFV_ARTIFACT_URL=$OPNFV_ARTIFACT_URL"
23 ) > $WORKSPACE/opnfv.properties
24