11# Copyright (c) Mixed Reality Toolkit Contributors
22# Licensed under the BSD 3-Clause
33
4- # RC build producing release candidate packages.
4+ name : ' $(date:yyMM).$(date:dd)$(rev:rr)-MixedRealityToolkit-RC'
5+
6+
7+ schedules :
8+ - cron : " 0 4 1,15 * *"
9+ displayName : Run At 04:00 on the 1st and 15th of each month
10+ # run even when there are no code changes
11+ always : true
12+ branches :
13+ include :
14+ - main
15+
16+ trigger : none
17+ pr : none
518
619variables :
720 - template : Config/settings.yaml
@@ -12,62 +25,89 @@ variables:
1225 - name : Version.DateCodeRevision
1326 value : $[counter(format('{0:yyMMdd}', pipeline.startTime), 0)]
1427
28+
1529resources :
1630 repositories :
17- - repository : PipelineTools
18- type : git
19- endpoint : ToolsAccess
20- name : tools.internal
21- ref : 78ecf591964ecf511b4c7a0cd84d98ce11e8be16
22- - repository : DocToolUnityProject
23- type : git
24- endpoint : ToolsAccess
25- name : lib.doctools
26- ref : 26723e6afa6d2adb44a734bd6ce0bc2bd90638b5
27-
28- trigger : none # only manual runs
29-
30- jobs :
31- - job : UnityValidation
32- pool : Unity_2021.3.21f1_Pool
33- steps :
34- - checkout : self
35-
36- - checkout : PipelineTools
37-
38- - task : ComponentGovernanceComponentDetection@0
39- inputs :
40- scanType : Register
41- alertWarningLevel : Medium
42- failOnAlert : true
43-
44- - template : Templates/unity.yaml
45- parameters :
46- Platform : Standalone
47-
48- - template : Templates/unity.yaml
49- parameters :
50- Platform : UWP
51-
52- - template : Templates/unity.yaml
53- parameters :
54- Platform : Android
55-
56- - template : Templates/upm.yaml
57- parameters :
58- prereleaseTag : $(ReleaseTagPrefix)
59- buildNumber : $(Version.Revision)
60- publishToFeed : true
61-
62- - job : DocsBinariesGeneration
63- pool : Unity_2021.3.21f1_Pool
64- steps :
65- - checkout : self
66-
67- - checkout : PipelineTools
68-
69- - checkout : DocToolUnityProject
70-
71- - template : Templates/license-unity.yaml@PipelineTools
72-
73- - template : Templates/docs.yaml
31+ - repository : 1ESPipelineTemplates
32+ type : git
33+ name : 1ESPipelineTemplates/1ESPipelineTemplates
34+ ref : refs/tags/release
35+ - repository : PipelineTools
36+ type : git
37+ endpoint : ToolsAccess
38+ name : tools.internal
39+ ref : 78ecf591964ecf511b4c7a0cd84d98ce11e8be16
40+ - repository : DocToolUnityProject
41+ type : git
42+ endpoint : ToolsAccess
43+ name : lib.doctools
44+ ref : 26723e6afa6d2adb44a734bd6ce0bc2bd90638b5
45+
46+ extends :
47+ template : v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
48+ parameters :
49+ pool :
50+ name : Unity_2021.3.21f1_Pool
51+ sdl :
52+ sourceRepositoriesToScan :
53+ exclude :
54+ - repository : PipelineTools
55+ - repository : DocToolUnityProject
56+
57+ tsa :
58+ enabled : true
59+ config :
60+ codebaseName : $(tsaCodeBasename)
61+ instanceUrl : $(tsaAdoOrg)
62+ projectName : $(tsaAdoProject)
63+ areaPath : $(tsaAreaPath)
64+ interationPath : $(tsaIterationPath)
65+ notificationAliases : $(tsaNotificationAliases)
66+
67+ binskim :
68+ break : false
69+ scanOutputDirectoryOnly : true
70+ stages :
71+ - stage : ' Build'
72+ jobs :
73+ - job : UnityValidation
74+
75+ steps :
76+ - checkout : self
77+ - checkout : PipelineTools
78+ - checkout : DocToolUnityProject
79+
80+ - powershell : Get-ChildItem -Path $(Build.SourcesDirectory) -recurse
81+ displayName : ' Initial source tree'
82+
83+ - pwsh : Install-Module PowerShellGet -Force
84+ displayName : Update PowerShellGet
85+
86+ - pwsh : Install-Module UnitySetup -Scope CurrentUser -Force -AllowPrerelease -RequiredVersion 5.6.161-develop
87+ displayName : Install unitysetup.powershell
88+
89+ - template : Templates/license-unity.yaml@PipelineTools
90+
91+
92+ - template : /Pipelines/Templates/1ES/unity.yaml@self
93+ parameters :
94+ Platform : Standalone
95+
96+ - template : /Pipelines/Templates/1ES/unity.yaml@self
97+ parameters :
98+ Platform : UWP
99+
100+ - template : /Pipelines/Templates/1ES/unity.yaml@self
101+ parameters :
102+ Platform : Android
103+
104+ - template : /Pipelines/Templates/1ES/upm.yaml@self
105+ parameters :
106+ prereleaseTag : $(ReleaseTagPrefix)
107+ buildNumber : $(Version.Revision)
108+ publishToFeed : true
109+
110+ - template : /Pipelines/Templates/1ES/docs.yaml@self
111+
112+
113+
0 commit comments