#6734 Fixed stage being output instead of revision

Added Commit as env to linux builds

Signed-off-by: Jamie Newbon <jamie@symless.com>
This commit is contained in:
Jamie Newbon
2020-07-23 16:27:57 +01:00
parent dd6f8f3f0a
commit 3a2a42b21f
2 changed files with 10 additions and 2 deletions

View File

@ -6,6 +6,8 @@ steps:
make -j
condition: eq(variables['packager'],'deb')
displayName: 'Build Release deb'
env:
GIT_COMMIT: $(Build.SourceVersion)
- script: |
mkdir build-release
@ -17,6 +19,8 @@ steps:
make -j
condition: eq(variables['packager'],'rpm')
displayName: 'Build Release rpm'
env:
GIT_COMMIT: $(Build.SourceVersion)
- script: |
mkdir build-ent
@ -26,6 +30,8 @@ steps:
make -j
displayName: 'Build enterprise'
condition: eq(variables['packager'],'deb')
env:
GIT_COMMIT: $(Build.SourceVersion)
- script: |
mkdir build-ent
@ -37,6 +43,8 @@ steps:
make -j
condition: eq(variables['packager'],'rpm')
displayName: 'Build enterprise rpm'
env:
GIT_COMMIT: $(Build.SourceVersion)
- script: |
. ./build-release/version

View File

@ -172,13 +172,13 @@ steps:
- script: |
cd $(Build.Repository.LocalPath)\build32\installer\bin\Release\
set FILENAME=$(prefix)_v$(SYNERGY_VERSION)-$(SYNERGY_VERSION_STAGE)_$(Build.BuildNumber).$(SYNERGY_VERSION_STAGE)_windows_x86.msi
set FILENAME=$(prefix)_v$(SYNERGY_VERSION)-$(SYNERGY_VERSION_STAGE)_$(Build.BuildNumber).$(SYNERGY_REVISION)_windows_x86.msi
ren "Synergy.msi" "%FILENAME%"
$(Build.Repository.LocalPath)\ext\openssl\windows\x64\bin\openssl.exe md5 %FILENAME% > %FILENAME%.checksum.txt
$(Build.Repository.LocalPath)\ext\openssl\windows\x64\bin\openssl.exe sha1 %FILENAME% >> %FILENAME%.checksum.txt
$(Build.Repository.LocalPath)\ext\openssl\windows\x64\bin\openssl.exe sha256 %FILENAME% >> %FILENAME%.checksum.txt
cd $(Build.Repository.LocalPath)\build64\installer\bin\Release\
set FILENAME=$(prefix)_v$(SYNERGY_VERSION)-$(SYNERGY_VERSION_STAGE)_$(Build.BuildNumber).$(SYNERGY_VERSION_STAGE)_windows_x64.msi
set FILENAME=$(prefix)_v$(SYNERGY_VERSION)-$(SYNERGY_VERSION_STAGE)_$(Build.BuildNumber).$(SYNERGY_REVISION)_windows_x64.msi
ren "Synergy.msi" "%FILENAME%"
$(Build.Repository.LocalPath)\ext\openssl\windows\x64\bin\openssl.exe md5 %FILENAME% > %FILENAME%.checksum.txt
$(Build.Repository.LocalPath)\ext\openssl\windows\x64\bin\openssl.exe sha1 %FILENAME% >> %FILENAME%.checksum.txt