summaryrefslogtreecommitdiffstats
path: root/ci/utility/collectd_build_rpm.sh
diff options
context:
space:
mode:
authorMaryam Tahhan <maryam.tahhan@intel.com>2017-06-28 11:05:09 +0100
committerMaryam Tahhan <maryam.tahhan@intel.com>2017-06-29 10:31:06 +0000
commit80e1ee94abf1d555cc8e6c42625ea0513458b779 (patch)
treefd8c973c8f0d2d24d4e92094baad85a727b6d2ad /ci/utility/collectd_build_rpm.sh
parent7dcda31fe01f5fe910033a0ff97eb1ba795ee680 (diff)
ci: fix nightly RPM build
Fix the RDT build to use an appropriate version and generate the correct version RPM. Fix the collectd version to only extract collect from the start of the version string. Change-Id: Ifd780059adbed7669c5e259f483018c325de44e6 Signed-off-by: Maryam Tahhan <maryam.tahhan@intel.com>
Diffstat (limited to 'ci/utility/collectd_build_rpm.sh')
-rwxr-xr-xci/utility/collectd_build_rpm.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/ci/utility/collectd_build_rpm.sh b/ci/utility/collectd_build_rpm.sh
index 086aa979..267dc939 100755
--- a/ci/utility/collectd_build_rpm.sh
+++ b/ci/utility/collectd_build_rpm.sh
@@ -18,9 +18,8 @@ source $DIR/package-list.sh
VERSION="VERSION_NOT_SET"
-rm -rf $RPM_WORKDIR
cd $COLLECTD_DIR
-VERSION=$( $COLLECTD_DIR/version-gen.sh | sed "s/\W$//g" )
+VERSION=$( $COLLECTD_DIR/version-gen.sh | sed "s/^\W$//g" )
$COLLECTD_DIR/build.sh
$COLLECTD_DIR/configure
make dist
@@ -37,4 +36,4 @@ sed --regexp-extended \
--expression="s/without_intel_rdt:[0-9]/without_intel_rdt:1/g" \
$COLLECTD_DIR/contrib/redhat/collectd.spec
-rpmbuild --define "_topdir $RPM_WORKDIR" -bb $COLLECTD_DIR/contrib/redhat/collectd.spec \ No newline at end of file
+rpmbuild --define "_topdir $RPM_WORKDIR" -bb $COLLECTD_DIR/contrib/redhat/collectd.spec