1010- hotfix/* 
1111
1212jobs :
13- - job : Windows 
13+ #  Build
14+ - job : Build 
1415  pool :
1516    vmImage : ' windows-2022' 
1617  steps :
17-   - powershell : | 
18-       $ENV:CAKE_SKIP_GITVERSION=([string]::IsNullOrEmpty($ENV:SYSTEM_PULLREQUEST_PULLREQUESTID) -eq $False).ToString() 
19-       .\build.ps1 --target=Buildserver 
20-       exit $LASTEXITCODE 
21-     displayName: 'Cake Build' 
22- job : macOS 
18+   - powershell : ./build.ps1 
19+     displayName : ' Build' 
20+   - publish : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet 
21+     artifact : NuGet Package 
22+     displayName : ' Publish NuGet package as build artifact' 
23+ #  Integration Tests Windows Server 2019 (.NET Core tool)
24+ - job : Test_Windows_2019_DotNetCoreTool 
25+   displayName : Integration Tests Windows Server 2019 (.NET Core tool) 
26+   dependsOn : Build 
27+   pool :
28+     vmImage : ' windows-2019' 
29+   steps :
30+   - download : current 
31+     artifact : NuGet Package 
32+     displayName : ' Download build artifact' 
33+   - task : CopyFiles@2 
34+     inputs :
35+       sourceFolder : $(Pipeline.Workspace)/NuGet Package 
36+       targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet 
37+     displayName : ' Copy build artifact for test run' 
38+   - powershell : ./build.ps1 
39+     workingDirectory : ./tests/script-runner/ 
40+     displayName : ' Run integration tests' 
41+   - publish : $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration 
42+     artifact : Integration Tests Windows Server 2019 (.NET Core tool) 
43+     displayName : ' Publish generated reports as build artifact' 
44+ #  Integration Tests Windows Server 2022 (.NET Core tool)
45+ - job : Test_Windows_2022_DotNetCoreTool 
46+   displayName : Integration Tests Windows Server 2022 (.NET Core tool) 
47+   dependsOn : Build 
48+   pool :
49+     vmImage : ' windows-2022' 
50+   steps :
51+   - download : current 
52+     artifact : NuGet Package 
53+     displayName : ' Download build artifact' 
54+   - task : CopyFiles@2 
55+     inputs :
56+       sourceFolder : $(Pipeline.Workspace)/NuGet Package 
57+       targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet 
58+     displayName : ' Copy build artifact for test run' 
59+   - powershell : ./build.ps1 
60+     workingDirectory : ./tests/script-runner/ 
61+     displayName : ' Run integration tests' 
62+   - publish : $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration 
63+     artifact : Integration Tests Windows Server 2022 (.NET Core tool) 
64+     displayName : ' Publish generated reports as build artifact' 
65+ #  Integration Tests macOS 11 (.NET Core tool)
66+ - job : Test_macOS_11_DotNetCoreTool 
67+   displayName : Integration Tests macOS 11 (.NET Core tool) 
68+   dependsOn : Build 
2369  pool :
2470    vmImage : ' macOS-11' 
2571  steps :
26-   - bash : | 
27-       ./build.sh --target=Buildserver 
28-     displayName: 'Cake Build' 
29- job : Ubuntu 
72+   - download : current 
73+     artifact : NuGet Package 
74+     displayName : ' Download build artifact' 
75+   - task : CopyFiles@2 
76+     inputs :
77+       sourceFolder : $(Pipeline.Workspace)/NuGet Package 
78+       targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet 
79+     displayName : ' Copy build artifact for test run' 
80+   - bash : ./build.sh 
81+     workingDirectory : ./tests/script-runner/ 
82+     displayName : ' Run integration tests' 
83+   - publish : $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration 
84+     artifact : Integration Tests macOS 11 (.NET Core tool) 
85+     displayName : ' Publish generated reports as build artifact' 
86+ #  Integration Tests macOS 12 (.NET Core tool)
87+ - job : Test_macOS_12_DotNetCoreTool 
88+   displayName : Integration Tests macOS 12 (.NET Core tool) 
89+   dependsOn : Build 
90+   pool :
91+     vmImage : ' macOS-12' 
92+   steps :
93+   - download : current 
94+     artifact : NuGet Package 
95+     displayName : ' Download build artifact' 
96+   - task : CopyFiles@2 
97+     inputs :
98+       sourceFolder : $(Pipeline.Workspace)/NuGet Package 
99+       targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet 
100+     displayName : ' Copy build artifact for test run' 
101+   - bash : ./build.sh 
102+     workingDirectory : ./tests/script-runner/ 
103+     displayName : ' Run integration tests' 
104+   - publish : $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration 
105+     artifact : Integration Tests macOS 12 (.NET Core tool) 
106+     displayName : ' Publish generated reports as build artifact' 
107+ #  Integration Tests Ubuntu 18.04 (.NET Core tool)
108+ - job : Test_Ubuntu_18_04_DotNetCoreTool 
109+   displayName : Integration Tests Ubuntu 18.04 (.NET Core tool) 
110+   dependsOn : Build 
30111  pool :
31112    vmImage : ' ubuntu-18.04' 
32113  steps :
33-   - bash : | 
34-       ./build.sh --target=Buildserver 
35-     displayName: 'Cake Build' 
114+   - download : current 
115+     artifact : NuGet Package 
116+     displayName : ' Download build artifact' 
117+   - task : CopyFiles@2 
118+     inputs :
119+       sourceFolder : $(Pipeline.Workspace)/NuGet Package 
120+       targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet 
121+     displayName : ' Copy build artifact for test run' 
122+   - bash : ./build.sh 
123+     workingDirectory : ./tests/script-runner/ 
124+     displayName : ' Run integration tests' 
125+   - publish : $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration 
126+     artifact : Integration Tests Ubuntu 18.04 (.NET Core tool) 
127+     displayName : ' Publish generated reports as build artifact' 
128+ #  Integration Tests Ubuntu 20.04 (.NET Core tool)
129+ - job : Test_Ubuntu_20_04_DotNetCoreTool 
130+   displayName : Integration Tests Ubuntu 20.04 (.NET Core tool) 
131+   dependsOn : Build 
132+   pool :
133+     vmImage : ' ubuntu-20.04' 
134+   steps :
135+   - download : current 
136+     artifact : NuGet Package 
137+     displayName : ' Download build artifact' 
138+   - task : CopyFiles@2 
139+     inputs :
140+       sourceFolder : $(Pipeline.Workspace)/NuGet Package 
141+       targetFolder : $(Build.SourcesDirectory)/BuildArtifacts/Packages/NuGet 
142+     displayName : ' Copy build artifact for test run' 
143+   - bash : ./build.sh 
144+     workingDirectory : ./tests/script-runner/ 
145+     displayName : ' Run integration tests' 
146+   - publish : $(Build.SourcesDirectory)/BuildArtifacts/TestResults/Integration 
147+     artifact : Integration Tests Ubuntu 20.04 (.NET Core tool) 
148+     displayName : ' Publish generated reports as build artifact' 
0 commit comments