@@ -3,7 +3,8 @@ parameters:
3
3
matrix :
4
4
Production : {}
5
5
pool : null
6
- buildScript : null
6
+ scriptPrefix : null
7
+ scriptSuffix : null
7
8
setupMac : false
8
9
setupWindows : false
9
10
skipSmokeTest : false
41
42
- script : git clean -xdff
42
43
displayName : Clean leftover submodules
43
44
45
+ # Run 'clean -a' script to recursively clean submodules: AzDO doesn't do this, and otherwise we
46
+ # fail to apply patches on persistent machines like dotnet-external-temp.
47
+ - script : ${{ format('{0}clean{1} -a', parameters.scriptPrefix, parameters.scriptSuffix) }}
48
+ displayName : Run source-build 'clean all' script
49
+
44
50
- template : ../steps/check-space-powershell.yml
45
51
46
52
- ${{ if eq(parameters.setupMac, true) }} :
@@ -56,15 +62,15 @@ jobs:
56
62
- template : ../steps/check-space-powershell.yml
57
63
58
64
# Build source-build.
59
- - script : ${{ format('{0} $(args.build)', parameters.buildScript ) }}
65
+ - script : ${{ format('{0}build{1} $(args.build)', parameters.scriptPrefix, parameters.scriptSuffix ) }}
60
66
displayName : Build source-build
61
67
timeoutInMinutes : 150
62
68
63
69
- template : ../steps/check-space-powershell.yml
64
70
65
71
# Run smoke tests.
66
72
- ${{ if ne(parameters.skipSmokeTest, true) }} :
67
- - bash : ${{ format('{0} $(args.smokeTest)', parameters.buildScript ) }}
73
+ - bash : ${{ format('{0}build{1} $(args.smokeTest)', parameters.scriptPrefix, parameters.scriptSuffix ) }}
68
74
displayName : Run smoke-test
69
75
70
76
# Gather artifacts. Uses git bash on Windows.
0 commit comments