You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: azure-pipelines.yml
+28-5
Original file line number
Diff line number
Diff line change
@@ -64,25 +64,48 @@ extends:
64
64
filePath: scripts/ci/version.sh
65
65
arguments: $(Build.BuildNumber)
66
66
script: >
67
-
#!/usr/bin/env bash # Update the version strings in the source code # Input: # $1 - the version string, if omitted, use ${BUILD_BUILDID} version=$1 if [ -z ${version} ]; then
67
+
#!/usr/bin/env bash
68
+
# Update the version strings in the source code
69
+
# Input:
70
+
# $1 - the version string, if omitted, use ${BUILD_BUILDID}
71
+
version=$1
72
+
73
+
if [ -z ${version} ]; then
68
74
version=${BUILD_BUILDID}
69
-
fi if [ -z ${version} ]; then
75
+
fi
76
+
77
+
if [ -z ${version} ]; then
70
78
echo 'Missing version string'
71
79
exit 1
72
-
fi echo "Add dev version suffix: $version" platform=`uname` echo "Platform: $platform" pattern="s/^VERSION = [\"']\(.*\)[\"']/VERSION = \"\1.dev$version\"/" if [ "${platform}" == "MSYS_NT-10.0" ]; then
0 commit comments