Skip to content
Snippets Groups Projects
Commit 284aed16 authored by Julien Leduc's avatar Julien Leduc
Browse files

Adding date + commit ID in srpm/rpm for versionning

parent 810699e7
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ cta_srpm:
- yum install -y gcc-c++ cmake make rpm-build
- mkdir build_srpm
- cd build_srpm
- cmake -DPackageOnly:Bool=true ..
- cmake -DPackageOnly:Bool=true -DVCS_VERSION=$(date +%Y%m%d)git$(echo ${CI_BUILD_REF} | cut -c1-8) ..
- make cta_srpm
artifacts:
......@@ -31,7 +31,7 @@ cta_rpm:
- yum-builddep --nogpgcheck -y build_srpm/RPM/SRPMS/*
- mkdir build_rpm
- cd build_rpm
- cmake ..
- cmake -DVCS_VERSION=$(date +%Y%m%d)git$(echo ${CI_BUILD_REF} | cut -c1-8) ..
- make -j4 && make -j4
- make cta_rpm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment