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
# 'Allow scripts to access the OAuth token' was selected in pipeline. Add the following YAML to any steps requiring access:
2
-
# env:
3
-
# MY_ACCESS_TOKEN: $(System.AccessToken)
4
-
# Variable 'runCodesignValidationInjection' was defined in the Variables tab
5
-
# Variable 'policy_service.build_task_injection.enabled' was defined in the Variables tab
6
-
# Variable 'PipelineGovernanceStatus_Audited' was defined in the Variables tab
7
-
# Variable 'PipelineClassification_Audited' was defined in the Variables tab
8
-
# Variable '1espt.codesignvalidation.enforced' was defined in the Variables tab
9
-
# Cron Schedules have been converted using UTC Time Zone and may need to be updated for your location
1
+
# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
2
+
# Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected.
3
+
# This pipeline will be extended to the MicroBuild template
#!/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
71
+
version=${BUILD_BUILDID}
72
+
fi if [ -z ${version} ]; then
73
+
echo 'Missing version string'
74
+
exit 1
75
+
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
76
+
# On preview version of sh build task, the script will pick up the wrong version of find.exe
77
+
find="C:\Program Files\Git\usr\bin\find.exe"
78
+
else
79
+
find="find"
80
+
fi for each in $("${find}" . -name setup.py); do
81
+
if [ "$platform" == "Darwin" ]; then
82
+
sed -i "" "${pattern}" "${each}"
83
+
rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi
84
+
else
85
+
sed -i "${pattern}" "${each}"
86
+
rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi
87
+
fi
88
+
done for each in $("${find}" . -name version.py); do
89
+
if [ "$platform" == "Darwin" ]; then
90
+
sed -i "" "${pattern}" "${each}"
91
+
rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi
92
+
else
93
+
sed -i "${pattern}" "${each}"
94
+
rc=$?; if [[ ${rc} != 0 ]]; then exit ${rc}; fi
95
+
fi
96
+
done
97
+
- task: PowerShell@2
98
+
name: PowerShell1
99
+
displayName: Compile All
100
+
timeoutInMinutes: 1
101
+
inputs:
102
+
targetType: inline
103
+
script: >-
104
+
.\scripts\windows\init.ps1 if ($LASTEXITCODE -ne 0) {
0 commit comments