@@ -33,7 +33,7 @@ object DebugBuild : BuildType({
3333"""
3434
3535 params {
36- text("Build .Arguments ", "", label = "Build .ps1 Arguments ", description = "Arguments to append to the 'Build ' build step.", allowEmpty = true)
36+ text("Build .Arguments ", "", label = "DockerBuild .ps1 Arguments ", description = "Arguments to append to the 'Build ' build step.", allowEmpty = true)
3737 param("Build .Timeout ", "30")
3838 }
3939
@@ -44,36 +44,27 @@ object DebugBuild : BuildType({
4444
4545 steps {
4646 powerShell {
47- name = " Kill background processes before cleanup "
48- id = " PreKill "
47+ name = " Prepare Docker image postsharpdocumentation-1.0 "
48+ id = " PrepareImage "
4949 scriptMode = file {
50- path = " Build .ps1"
50+ path = " DockerBuild .ps1"
5151 }
5252 noProfile = false
53- scriptArgs = " tools kill "
53+ scriptArgs = " -BuildImage -ImageName postsharpdocumentation-1.0 "
5454 }
5555 powerShell {
5656 name = " Build"
5757 id = " Build"
5858 scriptMode = file {
59- path = " Build.ps1"
60- }
61- noProfile = false
62- scriptArgs = " test --configuration Debug --buildNumber %build.number% --buildType %system.teamcity.buildType.id% --timeout %Build.Timeout% %Build.Arguments%"
63- }
64- powerShell {
65- name = " Kill background processes before next build"
66- id = " PostKill"
67- scriptMode = file {
68- path = " Build.ps1"
59+ path = " DockerBuild.ps1"
6960 }
7061 noProfile = false
71- scriptArgs = " tools kill "
62+ scriptArgs = " -Script Build.ps1 -ImageName postsharpdocumentation-1.0 -NoBuildImage test --configuration Debug --buildNumber %build.number% --buildType %system.teamcity.buildType.id% --timeout %Build.Timeout% %Build.Arguments% "
7263 }
7364 }
7465
7566 requirements {
76- equals("env.BuildAgentType ", "caravela04cloud ")
67+ equals("env.BuildAgentType ", "docker-win-x64-md ")
7768 }
7869
7970 features {
@@ -131,7 +122,7 @@ object ReleaseBuild : BuildType({
131122"""
132123
133124 params {
134- text("Build .Arguments ", "", label = "Build .ps1 Arguments ", description = "Arguments to append to the 'Build ' build step.", allowEmpty = true)
125+ text("Build .Arguments ", "", label = "DockerBuild .ps1 Arguments ", description = "Arguments to append to the 'Build ' build step.", allowEmpty = true)
135126 param("Build .Timeout ", "30")
136127 }
137128
@@ -142,36 +133,27 @@ object ReleaseBuild : BuildType({
142133
143134 steps {
144135 powerShell {
145- name = " Kill background processes before cleanup "
146- id = " PreKill "
136+ name = " Prepare Docker image postsharpdocumentation-1.0 "
137+ id = " PrepareImage "
147138 scriptMode = file {
148- path = " Build .ps1"
139+ path = " DockerBuild .ps1"
149140 }
150141 noProfile = false
151- scriptArgs = " tools kill "
142+ scriptArgs = " -BuildImage -ImageName postsharpdocumentation-1.0 "
152143 }
153144 powerShell {
154145 name = " Build"
155146 id = " Build"
156147 scriptMode = file {
157- path = " Build.ps1"
158- }
159- noProfile = false
160- scriptArgs = " test --configuration Release --buildNumber %build.number% --buildType %system.teamcity.buildType.id% --timeout %Build.Timeout% %Build.Arguments%"
161- }
162- powerShell {
163- name = " Kill background processes before next build"
164- id = " PostKill"
165- scriptMode = file {
166- path = " Build.ps1"
148+ path = " DockerBuild.ps1"
167149 }
168150 noProfile = false
169- scriptArgs = " tools kill "
151+ scriptArgs = " -Script Build.ps1 -ImageName postsharpdocumentation-1.0 -NoBuildImage test --configuration Release --buildNumber %build.number% --buildType %system.teamcity.buildType.id% --timeout %Build.Timeout% %Build.Arguments% "
170152 }
171153 }
172154
173155 requirements {
174- equals("env.BuildAgentType ", "caravela04cloud ")
156+ equals("env.BuildAgentType ", "docker-win-x64-md ")
175157 }
176158
177159 features {
@@ -229,7 +211,7 @@ object PublicBuild : BuildType({
229211"""
230212
231213 params {
232- text("Build .Arguments ", "", label = "Build .ps1 Arguments ", description = "Arguments to append to the 'Build ' build step.", allowEmpty = true)
214+ text("Build .Arguments ", "", label = "DockerBuild .ps1 Arguments ", description = "Arguments to append to the 'Build ' build step.", allowEmpty = true)
233215 param("Build .Timeout ", "30")
234216 }
235217
@@ -240,36 +222,27 @@ object PublicBuild : BuildType({
240222
241223 steps {
242224 powerShell {
243- name = " Kill background processes before cleanup "
244- id = " PreKill "
225+ name = " Prepare Docker image postsharpdocumentation-1.0 "
226+ id = " PrepareImage "
245227 scriptMode = file {
246- path = " Build .ps1"
228+ path = " DockerBuild .ps1"
247229 }
248230 noProfile = false
249- scriptArgs = " tools kill "
231+ scriptArgs = " -BuildImage -ImageName postsharpdocumentation-1.0 "
250232 }
251233 powerShell {
252234 name = " Build"
253235 id = " Build"
254236 scriptMode = file {
255- path = " Build .ps1"
237+ path = " DockerBuild .ps1"
256238 }
257239 noProfile = false
258- scriptArgs = " test --configuration Public --buildNumber %build.number% --buildType %system.teamcity.buildType.id% --timeout %Build.Timeout% %Build.Arguments%"
259- }
260- powerShell {
261- name = " Kill background processes before next build"
262- id = " PostKill"
263- scriptMode = file {
264- path = " Build.ps1"
265- }
266- noProfile = false
267- scriptArgs = " tools kill "
240+ scriptArgs = " -Script Build.ps1 -ImageName postsharpdocumentation-1.0 -NoBuildImage test --configuration Public --buildNumber %build.number% --buildType %system.teamcity.buildType.id% --timeout %Build.Timeout% %Build.Arguments%"
268241 }
269242 }
270243
271244 requirements {
272- equals("env.BuildAgentType ", "caravela04cloud ")
245+ equals("env.BuildAgentType ", "docker-win-x64-md ")
273246 }
274247
275248 features {
@@ -322,7 +295,7 @@ object PublicDeployment : BuildType({
322295 type = Type .DEPLOYMENT
323296
324297 params {
325- text("Publish .Arguments ", "", label = "Build .ps1 Arguments ", description = "Arguments to append to the 'Publish ' build step.", allowEmpty = true)
298+ text("Publish .Arguments ", "", label = "DockerBuild .ps1 Arguments ", description = "Arguments to append to the 'Publish ' build step.", allowEmpty = true)
326299 param("Publish .Timeout ", "30")
327300 }
328301
@@ -332,19 +305,28 @@ object PublicDeployment : BuildType({
332305 }
333306
334307 steps {
308+ powerShell {
309+ name = " Prepare Docker image postsharpdocumentation-1.0"
310+ id = " PrepareImage"
311+ scriptMode = file {
312+ path = " DockerBuild.ps1"
313+ }
314+ noProfile = false
315+ scriptArgs = " -BuildImage -ImageName postsharpdocumentation-1.0 "
316+ }
335317 powerShell {
336318 name = " Publish"
337319 id = " Publish"
338320 scriptMode = file {
339- path = " Build .ps1"
321+ path = " DockerBuild .ps1"
340322 }
341323 noProfile = false
342- scriptArgs = " publish --configuration Public --timeout %Publish.Timeout% %Publish.Arguments%"
324+ scriptArgs = " -Script Build.ps1 -ImageName postsharpdocumentation-1.0 -NoBuildImage publish --configuration Public --timeout %Publish.Timeout% %Publish.Arguments%"
343325 }
344326 }
345327
346328 requirements {
347- equals("env.BuildAgentType ", "caravela04cloud ")
329+ equals("env.BuildAgentType ", "docker-win-x64-md ")
348330 }
349331
350332 features {
@@ -408,7 +390,7 @@ object PublicUpdateSearch : BuildType({
408390 }
409391
410392 requirements {
411- equals("env.BuildAgentType ", "caravela04cloud ")
393+ equals("env.BuildAgentType ", "docker-win-x64-md ")
412394 }
413395
414396 features {
0 commit comments