From c32d6a0082208d27458f8c4a8103bae5b9ea235c Mon Sep 17 00:00:00 2001 From: Jamie Newbon Date: Tue, 11 Aug 2020 13:54:54 +0100 Subject: [PATCH] #6743 Set git commit linux rpm --- CI/Linux/linux-build.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CI/Linux/linux-build.yml b/CI/Linux/linux-build.yml index e3ac82930..285e7af43 100644 --- a/CI/Linux/linux-build.yml +++ b/CI/Linux/linux-build.yml @@ -4,10 +4,11 @@ steps: cd build-release if [ -z $(which cmake) ]; then cmake3 -DCMAKE_BUILD_TYPE=Release ..; else cmake -DCMAKE_BUILD_TYPE=Release ..; fi . ./version - export SYNERGY_REVISION=`git rev-parse --short=8 HEAD` make -j condition: eq(variables['packager'],'deb') displayName: 'Build Release deb' + env: + GIT_COMMIT: $(Build.SourceVersion) - script: | mkdir build-release @@ -17,10 +18,11 @@ steps: else cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX:PATH=$(pwd)/rpm/BUILDROOT/usr ..; fi . ./version - export SYNERGY_REVISION=`git rev-parse --short=8 HEAD` make -j condition: eq(variables['packager'],'rpm') displayName: 'Build Release rpm' + env: + GIT_COMMIT: $(Build.SourceVersion) - script: | mkdir build-ent @@ -31,6 +33,8 @@ steps: make -j displayName: 'Build enterprise' condition: eq(variables['packager'],'deb') + env: + GIT_COMMIT: $(Build.SourceVersion) - script: | mkdir build-ent