@@ -12,77 +12,81 @@ pool:
1212variables :
1313 BuildConfiguration : Release
1414
15- steps :
16- - task : BatchScript@1
17- inputs :
18- filename : " C:\\ Program Files (x86)\\ Microsoft Visual Studio\\ 2019\\ Enterprise\\ Common7\\ Tools\\ VsDevCmd.bat"
19- arguments : -no_logo
20- modifyEnvironment : true
21- displayName : Setup Environment Variables
15+ jobs :
16+ - job : Toolkit Build
17+ timeoutInMinutes : 120
2218
23- - task : NuGetToolInstaller@0
24- displayName : Use NuGet 5.6.0
25- inputs :
26- versionSpec : 5.6.0
27-
28- - task : DotNetCoreCLI@2
29- inputs :
30- command : custom
31- custom : tool
32- arguments : install --tool-path . nbgv
33- displayName : Install NBGV tool
34-
35- - script : nbgv cloud
36- displayName : Set Version
37-
38- # - powershell: .\build\Install-WindowsSdkISO.ps1 18362
39- # displayName: Insider SDK
40-
41- - powershell : .\build\build.ps1 -target=Build
42- displayName : Build
43-
44- - powershell : .\build\build.ps1 -target=Test
45- displayName : Test
46-
47- - powershell : .\build\build.ps1 -target=Package
48- displayName : Package
49-
50- - powershell : .\build\build.ps1 -target=SmokeTest
51- displayName : SmokeTest
52-
53- - task : PublishTestResults@2
54- inputs :
55- testResultsFormat : ' VSTest'
56- testResultsFiles : ' **/VsTestResults*.trx'
57- displayName : Publish Test Results
58- condition : succeededOrFailed()
59-
60- - task : PowerShell@2
61- displayName : Authenticode Sign Packages
62- inputs :
63- filePath : build/Sign-Package.ps1
64- env :
65- SignClientUser : $(SignClientUser)
66- SignClientSecret : $(SignClientSecret)
67- ArtifactDirectory : bin\nupkg
68- condition : and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
69-
70- - task : PublishBuildArtifacts@1
71- displayName : Publish Package Artifacts
72- inputs :
73- pathToPublish : .\bin\nupkg
74- artifactType : container
75- artifactName : Packages
76-
77- - task : CopyFiles@2
78- inputs :
79- sourceFolder : .\SmokeTests\AppPackages
80- contents : ' **\*.appxbundle'
81- targetFolder : $(build.artifactstagingdirectory)\SmokeTestBundles
82-
83- - task : PublishBuildArtifacts@1
84- displayName : Publish Smoke Test Artifacts
85- inputs :
86- pathToPublish : $(build.artifactstagingdirectory)\SmokeTestBundles
87- artifactType : container
88- artifactName : SmokeTestBundles
19+ steps :
20+ - task : BatchScript@1
21+ inputs :
22+ filename : " C:\\ Program Files (x86)\\ Microsoft Visual Studio\\ 2019\\ Enterprise\\ Common7\\ Tools\\ VsDevCmd.bat"
23+ arguments : -no_logo
24+ modifyEnvironment : true
25+ displayName : Setup Environment Variables
26+
27+ - task : NuGetToolInstaller@0
28+ displayName : Use NuGet 5.6.0
29+ inputs :
30+ versionSpec : 5.6.0
31+
32+ - task : DotNetCoreCLI@2
33+ inputs :
34+ command : custom
35+ custom : tool
36+ arguments : install --tool-path . nbgv
37+ displayName : Install NBGV tool
38+
39+ - script : nbgv cloud
40+ displayName : Set Version
41+
42+ # - powershell: .\build\Install-WindowsSdkISO.ps1 18362
43+ # displayName: Insider SDK
44+
45+ - powershell : .\build\build.ps1 -target=Build
46+ displayName : Build
47+
48+ - powershell : .\build\build.ps1 -target=Test
49+ displayName : Test
50+
51+ - powershell : .\build\build.ps1 -target=Package
52+ displayName : Package
53+
54+ - powershell : .\build\build.ps1 -target=SmokeTest
55+ displayName : SmokeTest
56+
57+ - task : PublishTestResults@2
58+ inputs :
59+ testResultsFormat : ' VSTest'
60+ testResultsFiles : ' **/VsTestResults*.trx'
61+ displayName : Publish Test Results
62+ condition : succeededOrFailed()
63+
64+ - task : PowerShell@2
65+ displayName : Authenticode Sign Packages
66+ inputs :
67+ filePath : build/Sign-Package.ps1
68+ env :
69+ SignClientUser : $(SignClientUser)
70+ SignClientSecret : $(SignClientSecret)
71+ ArtifactDirectory : bin\nupkg
72+ condition : and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
73+
74+ - task : PublishBuildArtifacts@1
75+ displayName : Publish Package Artifacts
76+ inputs :
77+ pathToPublish : .\bin\nupkg
78+ artifactType : container
79+ artifactName : Packages
80+
81+ - task : CopyFiles@2
82+ inputs :
83+ sourceFolder : .\SmokeTests\AppPackages
84+ contents : ' **\*.appxbundle'
85+ targetFolder : $(build.artifactstagingdirectory)\SmokeTestBundles
86+
87+ - task : PublishBuildArtifacts@1
88+ displayName : Publish Smoke Test Artifacts
89+ inputs :
90+ pathToPublish : $(build.artifactstagingdirectory)\SmokeTestBundles
91+ artifactType : container
92+ artifactName : SmokeTestBundles
0 commit comments