#2648 - fixed error whereby VERSION variable isn't set before setting the dev build version in the VERSION file

This commit is contained in:
Chris McCarthy
2024-06-26 09:46:05 +01:00
parent 2192516c9a
commit 112f116a89

View File

@@ -24,6 +24,7 @@ steps:
persistCredentials: true
- script: |
VERSION=$(cat src/primaite/VERSION | tr -d '\n')
if [[ "$(Build.SourceBranch)" == "refs/heads/feature/2648_Automate-the-benchmarking-process" ]]; then
DATE=$(date +%Y%m%d%H%M)
echo "${VERSION}+dev.${DATE}" > src/primaite/VERSION