diff options
author | Emma Foley <efoley@redhat.com> | 2021-06-24 20:24:28 +0100 |
---|---|---|
committer | Emma Foley <efoley@redhat.com> | 2021-06-24 20:34:37 +0100 |
commit | 1b2288bd8b03a8714cc43dbdf52d476977eba324 (patch) | |
tree | f4e0655f28668a88eb05bb2ed65b9ff197a4dfec /ci/barometer-build.sh | |
parent | c50ca232e47fc73b736c3ff9965b4067838def30 (diff) |
[ci] Move scripts from releng into ci/ for gitlab
Gitlab expects the barometer-build.sh and barometer-upload-artifact.sh
to be available in the Barometer repo under ci/, these scripts were
previously in opnfv/releng [1] for the Jenkins jobs.
These scripts have been copied from releng.
[1] https://gerrit.opnfv.org/gerrit/gitweb?p=releng.git;a=tree;f=jjb/barometer;h=f8828a9db69e20cb035568f6a33cda03bea09318;hb=refs/heads/master
Change-Id: Iaf7b1f8a6c08fce11cf2873a8cea66ef9d6d5170
Signed-off-by: Emma Foley <efoley@redhat.com>
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 + |