Skip to content

Commit 9c0a68c

Browse files
committed
Build PRs
1 parent a355b36 commit 9c0a68c

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.teamcity/settings.kts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ version = "2022.10"
2424

2525
project {
2626
buildType(GroovyMC_CommonGroovyLibrary_Build)
27+
buildType(GroovyMC_CommonGroovyLibrary_PullRequests)
2728
}
2829

2930
object GroovyMC_CommonGroovyLibrary_Build : BuildType({
@@ -74,4 +75,41 @@ object GroovyMC_CommonGroovyLibrary_Build : BuildType({
7475
tasks = "publish"
7576
}
7677
}
78+
})
79+
80+
object GroovyMC_CommonGroovyLibrary_PullRequests : BuildType({
81+
id("PullRequests")
82+
name = "PullRequests"
83+
84+
vcs {
85+
root(DslContext.settingsRoot)
86+
}
87+
88+
features {
89+
swabra {
90+
filesCleanup = Swabra.FilesCleanup.BEFORE_BUILD
91+
lockingProcesses = Swabra.LockingProcessPolicy.KILL
92+
}
93+
commitStatusPublisher {
94+
publisher = github {
95+
githubUrl = "https://api.github.com"
96+
authType = personalToken {
97+
token = "%commit_status_publisher%"
98+
}
99+
}
100+
}
101+
pullRequests {
102+
provider = github {
103+
authType = vcsRoot()
104+
filterAuthorRole = PullRequests.GitHubRoleFilter.EVERYBODY
105+
}
106+
}
107+
}
108+
109+
steps {
110+
gradle {
111+
name = "Build Gradle Project"
112+
tasks = "build"
113+
}
114+
}
77115
})

0 commit comments

Comments
 (0)