11// This file is automatically generated by `Build.ps1 generate-scripts`.
22
3- // Both Swabra and swabra need to be imported
43import jetbrains.buildServer.configs.kotlin.*
5- import jetbrains.buildServer.configs.kotlin.buildFeatures.sshAgent
6- import jetbrains.buildServer.configs.kotlin.buildFeatures.Swabra
7- import jetbrains.buildServer.configs.kotlin.buildFeatures.swabra
4+ import jetbrains.buildServer.configs.kotlin.buildFeatures.*
85import jetbrains.buildServer.configs.kotlin.buildSteps.powerShell
96import jetbrains.buildServer.configs.kotlin.failureConditions.*
107import jetbrains.buildServer.configs.kotlin.triggers.*
8+ import jetbrains.buildServer.configs.kotlin.projectFeatures.*
119
12- version = " 2024.03 "
10+ version = " 2025.07 "
1311
1412project {
1513
@@ -37,11 +35,11 @@ object DebugBuild : BuildType({
3735 params {
3836 text("Build .Arguments ", "", label = "DockerBuild .ps1 Arguments ", description = "Arguments to append to the 'Build ' build step.", allowEmpty = true)
3937 param("Build .Timeout ", "30")
40- text("DefaultBranch ", "develop/2023.2", label = "Default Branch ", description = "The default branch of this build configuration.")
4138 }
4239
4340 vcs {
4441 root(AbsoluteId ("Engineering_PostSharpEngineering "))
42+ checkoutMode = CheckoutMode .ON_AGENT
4543 }
4644
4745 steps {
@@ -61,7 +59,7 @@ object DebugBuild : BuildType({
6159 path = " DockerBuild.ps1"
6260 }
6361 noProfile = false
64- scriptArgs = " -ImageName postsharpengineering-2023.2 -NoBuildImage test --configuration Debug --buildNumber %build.number% --buildType %system.teamcity.buildType.id% %Build.Arguments% --timeout %Build.Timeout%"
62+ scriptArgs = " -Script Build.ps1 - ImageName postsharpengineering-2023.2 -NoBuildImage test --configuration Debug --buildNumber %build.number% --buildType %system.teamcity.buildType.id% %Build.Arguments% --timeout %Build.Timeout%"
6563 }
6664 }
6765
@@ -74,6 +72,27 @@ object DebugBuild : BuildType({
7472 lockingProcesses = Swabra .LockingProcessPolicy .KILL
7573 verbose = true
7674 }
75+ commitStatusPublisher {
76+ vcsRootExtId = " Engineering_PostSharpEngineering"
77+ publisher = github {
78+ githubUrl = " https://api.github.com"
79+ authType = personalToken {
80+ token = " %env.GITHUB_TOKEN%"
81+ }
82+ }
83+ }
84+ pullRequests {
85+ vcsRootExtId = " Engineering_PostSharpEngineering"
86+ provider = github {
87+ authType = token {
88+ token = " %env.GITHUB_TOKEN%"
89+ }
90+ filterTargetBranch = " +:refs/heads/develop/2023.2"
91+ filterAuthorRole = PullRequests .GitHubRoleFilter .EVERYBODY
92+ }
93+ }
94+
95+
7796 }
7897
7998 triggers {
@@ -101,11 +120,11 @@ object ReleaseBuild : BuildType({
101120 params {
102121 text("Build .Arguments ", "", label = "DockerBuild .ps1 Arguments ", description = "Arguments to append to the 'Build ' build step.", allowEmpty = true)
103122 param("Build .Timeout ", "30")
104- text("DefaultBranch ", "develop/2023.2", label = "Default Branch ", description = "The default branch of this build configuration.")
105123 }
106124
107125 vcs {
108126 root(AbsoluteId ("Engineering_PostSharpEngineering "))
127+ checkoutMode = CheckoutMode .ON_AGENT
109128 }
110129
111130 steps {
@@ -125,7 +144,7 @@ object ReleaseBuild : BuildType({
125144 path = " DockerBuild.ps1"
126145 }
127146 noProfile = false
128- scriptArgs = " -ImageName postsharpengineering-2023.2 -NoBuildImage test --configuration Release --buildNumber %build.number% --buildType %system.teamcity.buildType.id% %Build.Arguments% --timeout %Build.Timeout%"
147+ scriptArgs = " -Script Build.ps1 - ImageName postsharpengineering-2023.2 -NoBuildImage test --configuration Release --buildNumber %build.number% --buildType %system.teamcity.buildType.id% %Build.Arguments% --timeout %Build.Timeout%"
129148 }
130149 }
131150
@@ -138,6 +157,27 @@ object ReleaseBuild : BuildType({
138157 lockingProcesses = Swabra .LockingProcessPolicy .KILL
139158 verbose = true
140159 }
160+ commitStatusPublisher {
161+ vcsRootExtId = " Engineering_PostSharpEngineering"
162+ publisher = github {
163+ githubUrl = " https://api.github.com"
164+ authType = personalToken {
165+ token = " %env.GITHUB_TOKEN%"
166+ }
167+ }
168+ }
169+ pullRequests {
170+ vcsRootExtId = " Engineering_PostSharpEngineering"
171+ provider = github {
172+ authType = token {
173+ token = " %env.GITHUB_TOKEN%"
174+ }
175+ filterTargetBranch = " +:refs/heads/develop/2023.2"
176+ filterAuthorRole = PullRequests .GitHubRoleFilter .EVERYBODY
177+ }
178+ }
179+
180+
141181 }
142182
143183})
@@ -156,11 +196,11 @@ object PublicBuild : BuildType({
156196 params {
157197 text("Build .Arguments ", "", label = "DockerBuild .ps1 Arguments ", description = "Arguments to append to the 'Build ' build step.", allowEmpty = true)
158198 param("Build .Timeout ", "30")
159- text("DefaultBranch ", "develop/2023.2", label = "Default Branch ", description = "The default branch of this build configuration.")
160199 }
161200
162201 vcs {
163202 root(AbsoluteId ("Engineering_PostSharpEngineering "))
203+ checkoutMode = CheckoutMode .ON_AGENT
164204 }
165205
166206 steps {
@@ -180,7 +220,7 @@ object PublicBuild : BuildType({
180220 path = " DockerBuild.ps1"
181221 }
182222 noProfile = false
183- scriptArgs = " -ImageName postsharpengineering-2023.2 -NoBuildImage test --configuration Public --buildNumber %build.number% --buildType %system.teamcity.buildType.id% %Build.Arguments% --timeout %Build.Timeout%"
223+ scriptArgs = " -Script Build.ps1 - ImageName postsharpengineering-2023.2 -NoBuildImage test --configuration Public --buildNumber %build.number% --buildType %system.teamcity.buildType.id% %Build.Arguments% --timeout %Build.Timeout%"
184224 }
185225 }
186226
@@ -193,6 +233,27 @@ object PublicBuild : BuildType({
193233 lockingProcesses = Swabra .LockingProcessPolicy .KILL
194234 verbose = true
195235 }
236+ commitStatusPublisher {
237+ vcsRootExtId = " Engineering_PostSharpEngineering"
238+ publisher = github {
239+ githubUrl = " https://api.github.com"
240+ authType = personalToken {
241+ token = " %env.GITHUB_TOKEN%"
242+ }
243+ }
244+ }
245+ pullRequests {
246+ vcsRootExtId = " Engineering_PostSharpEngineering"
247+ provider = github {
248+ authType = token {
249+ token = " %env.GITHUB_TOKEN%"
250+ }
251+ filterTargetBranch = " +:refs/heads/develop/2023.2"
252+ filterAuthorRole = PullRequests .GitHubRoleFilter .EVERYBODY
253+ }
254+ }
255+
256+
196257 }
197258
198259})
@@ -206,11 +267,11 @@ object PublicDeployment : BuildType({
206267 params {
207268 text("Publish .Arguments ", "", label = "DockerBuild .ps1 Arguments ", description = "Arguments to append to the 'Publish ' build step.", allowEmpty = true)
208269 param("Publish .Timeout ", "30")
209- text("DefaultBranch ", "develop/2023.2", label = "Default Branch ", description = "The default branch of this build configuration.")
210270 }
211271
212272 vcs {
213273 root(AbsoluteId ("Engineering_PostSharpEngineering "))
274+ checkoutMode = CheckoutMode .ON_AGENT
214275 }
215276
216277 steps {
@@ -230,7 +291,7 @@ object PublicDeployment : BuildType({
230291 path = " DockerBuild.ps1"
231292 }
232293 noProfile = false
233- scriptArgs = " -ImageName postsharpengineering-2023.2 -NoBuildImage publish --configuration Public %Publish.Arguments% --timeout %Publish.Timeout%"
294+ scriptArgs = " -Script Build.ps1 - ImageName postsharpengineering-2023.2 -NoBuildImage publish --configuration Public %Publish.Arguments% --timeout %Publish.Timeout%"
234295 }
235296 }
236297
@@ -267,11 +328,11 @@ object VersionBump : BuildType({
267328 params {
268329 text("Bump .Arguments ", "", label = "DockerBuild .ps1 Arguments ", description = "Arguments to append to the 'Bump ' build step.", allowEmpty = true)
269330 param("Bump .Timeout ", "15")
270- text("DefaultBranch ", "develop/2023.2", label = "Default Branch ", description = "The default branch of this build configuration.")
271331 }
272332
273333 vcs {
274334 root(AbsoluteId ("Engineering_PostSharpEngineering "))
335+ checkoutMode = CheckoutMode .ON_AGENT
275336 }
276337
277338 steps {
@@ -291,7 +352,7 @@ object VersionBump : BuildType({
291352 path = " DockerBuild.ps1"
292353 }
293354 noProfile = false
294- scriptArgs = " -ImageName postsharpengineering-2023.2 -NoBuildImage bump %Bump.Arguments% --timeout %Bump.Timeout%"
355+ scriptArgs = " -Script Build.ps1 - ImageName postsharpengineering-2023.2 -NoBuildImage bump %Bump.Arguments% --timeout %Bump.Timeout%"
295356 }
296357 }
297358
0 commit comments