Skip to content

Commit abaff9c

Browse files
committed
Use checkout template, feedback
1 parent d2941a5 commit abaff9c

File tree

3 files changed

+30
-12
lines changed

3 files changed

+30
-12
lines changed

build-tools/automation/yaml-templates/build-linux.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
parameters:
22
buildPool: android-devdiv-ubuntu-vmss
3+
checkoutCommit: ''
4+
checkoutPath: 's/xamarin-android'
5+
checkoutPersistCredentials: false
36
dependsOn: ''
47
dependsOnResult: ''
58
jobName: linux_build_create_sdk_pack
69
jobDisplayName: Linux > Build
7-
repoAlias: self
10+
repositoryAlias: self
811
stageName: linux_build
912
stageDisplayName: Linux
1013

@@ -25,10 +28,12 @@ stages:
2528
CXX: g++-10
2629
CC: gcc-10
2730
steps:
28-
- checkout: ${{ parameters.repoAlias }}
29-
clean: true
30-
submodules: recursive
31-
path: s/xamarin-android
31+
- template: sdk-unified/steps/checkout/v1.yml@yaml-templates
32+
parameters:
33+
resource: ${{ parameters.repositoryAlias }}
34+
commit: ${{ parameters.checkoutCommit }}
35+
path: ${{ parameters.checkoutPath }}
36+
persistCredentials: ${{ parameters.checkoutPersistCredentials }}
3237

3338
- checkout: monodroid
3439
clean: true

build-tools/automation/yaml-templates/build-macos.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
parameters:
22
buildPoolName: $(MacBuildPoolName)
33
buildPoolImage: $(MacBuildPoolImage)
4+
checkoutCommit: ''
5+
checkoutPath: 's/xamarin-android'
6+
checkoutPersistCredentials: false
47
dependsOn: ''
58
dependsOnResult: ''
69
jobName: mac_build_create_installers
710
jobDisplayName: macOS > Build
811
provisionatorChannel: latest
9-
repoAlias: self
12+
repositoryAlias: self
1013
signClassicPkgContent: false
1114
stageName: mac_build
1215
stageDisplayName: Mac
@@ -31,9 +34,12 @@ stages:
3134
workspace:
3235
clean: all
3336
steps:
34-
- checkout: ${{ parameters.repoAlias }}
35-
submodules: recursive
36-
path: s/xamarin-android
37+
- template: sdk-unified/steps/checkout/v1.yml@yaml-templates
38+
parameters:
39+
resource: ${{ parameters.repositoryAlias }}
40+
commit: ${{ parameters.checkoutCommit }}
41+
path: ${{ parameters.checkoutPath }}
42+
persistCredentials: ${{ parameters.checkoutPersistCredentials }}
3743

3844
- template: install-microbuild-tooling.yaml
3945
parameters:

build-tools/automation/yaml-templates/build-windows.yaml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
parameters:
22
buildPool: $(1ESWindowsPool)
3+
checkoutCommit: ''
4+
checkoutPath: ''
5+
checkoutPersistCredentials: false
36
dependsOn: ''
47
dependsOnResult: ''
58
jobName: win_build_test
69
jobDisplayName: Windows > Build & Smoke Test
7-
repoAlias: self
10+
repositoryAlias: self
811
stageName: win_build_test
912
stageDisplayName: Windows
1013

@@ -22,8 +25,12 @@ stages:
2225
pool: ${{ parameters.buildPool }}
2326
timeoutInMinutes: 360
2427
steps:
25-
- checkout: ${{ parameters.repoAlias }}
26-
submodules: recursive
28+
- template: sdk-unified/steps/checkout/v1.yml@yaml-templates
29+
parameters:
30+
resource: ${{ parameters.repositoryAlias }}
31+
commit: ${{ parameters.checkoutCommit }}
32+
path: ${{ parameters.checkoutPath }}
33+
persistCredentials: ${{ parameters.checkoutPersistCredentials }}
2734

2835
- template: kill-processes.yaml
2936

0 commit comments

Comments
 (0)