1
+ package tests.buildTypes
2
+
3
+ import jetbrains.buildServer.configs.kotlin.BuildType
4
+ import jetbrains.buildServer.configs.kotlin.FailureAction
5
+ import jetbrains.buildServer.configs.kotlin.buildFeatures.PullRequests
6
+ import jetbrains.buildServer.configs.kotlin.buildFeatures.pullRequests
7
+ import jetbrains.buildServer.configs.kotlin.buildSteps.script
8
+ import jetbrains.buildServer.configs.kotlin.triggers.vcs
9
+
10
+ object ApiReferencesTemplateTest: BuildType({
11
+ name = " Api References Template Test"
12
+
13
+ vcs {
14
+ root(vcsRoots.KotlinLangOrg )
15
+ }
16
+
17
+ triggers {
18
+ vcs {
19
+ branchFilter = " +:pull/*"
20
+ }
21
+ }
22
+
23
+ steps {
24
+ script {
25
+ scriptContent = " ./scripts/dokka/up.sh"
26
+ }
27
+
28
+ script {
29
+ scriptContent = " ./scripts/dokka/run.sh"
30
+ }
31
+
32
+ script {
33
+ scriptContent = " ./scripts/dokka/stop.sh"
34
+ }
35
+ }
36
+
37
+ requirements {
38
+ exists("docker.server.version")
39
+ contains("docker.server.osType", "linux")
40
+ }
41
+
42
+ features {
43
+ pullRequests {
44
+ vcsRootExtId = " ${vcsRoots.KotlinLangOrg .id} "
45
+ provider = github {
46
+ authType = token {
47
+ token = " %github.oauth%"
48
+ }
49
+ filterAuthorRole = PullRequests .GitHubRoleFilter .MEMBER_OR_COLLABORATOR
50
+ }
51
+ }
52
+ }
53
+
54
+ dependencies {
55
+ dependency(builds.apiReferences.buildTypes.KotlinxCoroutines ) {
56
+ snapshot {
57
+ onDependencyFailure = FailureAction .CANCEL
58
+ onDependencyCancel = FailureAction .CANCEL
59
+ }
60
+
61
+ artifacts {
62
+ artifactRules = " +:pages.zip!** => libs/kotlinx.coroutines/"
63
+ }
64
+ }
65
+
66
+ dependency(builds.apiReferences.buildTypes.KotlinxSerialization ) {
67
+ snapshot {
68
+ onDependencyFailure = FailureAction .CANCEL
69
+ onDependencyCancel = FailureAction .CANCEL
70
+ }
71
+
72
+ artifacts {
73
+ artifactRules = " +:pages.zip!** => libs/kotlinx.serialization/"
74
+ }
75
+ }
76
+ }
77
+ })
0 commit comments