diff options
author | Emma Foley <efoley@redhat.com> | 2021-06-28 14:38:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2021-06-28 14:38:28 +0000 |
commit | 08de218f6df582d056664ddbb687e659712590f5 (patch) | |
tree | 0bebd9bec926cc14c2e20bfa0196f0e68884a8d6 /ci/barometer-build.sh | |
parent | 3823f1618c4fb8d660adc9e52597ceffd59a1363 (diff) | |
parent | 1b2288bd8b03a8714cc43dbdf52d476977eba324 (diff) |
Merge "[ci] Move scripts from releng into ci/ for gitlab"
Diffstat (limited to 'ci/barometer-build.sh')
-rw-r--r-- | ci/barometer-build.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ci/barometer-build.sh b/ci/barometer-build.sh new file mode 100644 index 00000000..04bbd263 --- /dev/null +++ b/ci/barometer-build.sh @@ -0,0 +1,26 @@ +# This script is used by the barometer-daily CI job in gitlab. +# It builds and packages collectd as an RPM +# After this script is run, the baroemter-daily job runs the +# barometer-upload-artifact.sh script. +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 + |