Skip to content

Commit c45d073

Browse files
Quattro8zoobestik
authored andcommitted
KTL-2775 update documentation builds with the abstract class
1 parent 8f65bfd commit c45d073

File tree

2 files changed

+70
-74
lines changed

2 files changed

+70
-74
lines changed

.teamcity/documentation/builds/KotlinMultiplatform.kt

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,6 @@
11
package documentation.builds
22

33
import documentation.vcsRoots.KotlinMultiplatformVCS
4-
//import jetbrains.buildServer.configs.kotlin.BuildType
5-
//import jetbrains.buildServer.configs.kotlin.buildSteps.script
6-
7-
//object KotlinMultiplatform: BuildType ({
8-
// val dockerImageTag = "2.1.2176-p8483"
9-
// val frontend = "https://kotlinlang.org/docs/static/v3/"
10-
//
11-
// name = "Kotlin Multiplatform"
12-
// description = "KTL-2775 Migrate KMP Dev Docs: Create a Build of KMP Dev Docs in Our Pipeline"
13-
//
14-
// vcs {
15-
// root(KotlinMultiplatformVCS)
16-
// }
17-
//
18-
// artifactRules = """
19-
// artifacts/*
20-
// """.trimIndent()
21-
//
22-
// steps {
23-
// script {
24-
// name = "Build KMP Documentation with the docker"
25-
// scriptContent = """
26-
// docker run --rm -v %teamcity.build.checkoutDir%:/opt/sources \
27-
// -e SOURCE_DIR=/opt/sources \
28-
// -e MODULE_INSTANCE=kotlin-multiplatform-docs/mpd \
29-
// -e RUNNER=teamcity \
30-
// -e FRONTEND=$frontend \
31-
// -e OUTPUT_DIR=/opt/sources/artifacts \
32-
// registry.jetbrains.team/p/writerside/builder/writerside-builder:$dockerImageTag
33-
// """.trimIndent()
34-
// }
35-
// }
36-
//
37-
// requirements {
38-
// equals("container.engine","docker")
39-
// }
40-
//})
414

425
object KotlinMultiplatform: WritersideBuilder (
436
module = "kotlin-multiplatform-docs",
Lines changed: 70 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,94 @@
11
package documentation.builds
22

33
import documentation.vcsRoots.*
4-
import jetbrains.buildServer.configs.kotlin.BuildType
5-
import jetbrains.buildServer.configs.kotlin.buildSteps.script
4+
//import jetbrains.buildServer.configs.kotlin.BuildType
5+
//import jetbrains.buildServer.configs.kotlin.FailureAction
6+
//import jetbrains.buildServer.configs.kotlin.buildSteps.script
67

7-
object KotlinWithCoroutines: BuildType ({
8-
val dockerImageTag = "2.1.2176-p8483"
9-
val frontend = "https://kotlinlang.org/docs/static/v3/"
10-
11-
name = "Kotlin Reference with coroutines"
12-
description = "Kotlin Reference with coroutines documentation build"
13-
14-
vcs {
15-
root(KotlinReferenceRoot, """
8+
object KotlinWithCoroutines: WritersideBuilder(
9+
module = "kotlin-reference",
10+
instance = "kr",
11+
customInit = {
12+
name ="Kotlin Reference wit coroutines"
13+
vcs {
14+
root(KotlinReferenceRoot, """
1615
+:docs => docs
1716
+:.git => .git
1817
+:.gitmodules => .gitmodules
1918
+:docs-test-submodule => docs-test-submodule
2019
""".trimIndent())
21-
root(KotlinxCoroutinesRoot,"""
20+
root(KotlinxCoroutinesRoot,"""
2221
+:docs => kotlinx.coroutines/docs
2322
+:.git => kotlinx.coroutines/.git
2423
""".trimIndent())
25-
root(KotlinxLincheckRoot, """
24+
root(KotlinxLincheckRoot, """
2625
+:docs => kotlinx-lincheck/docs
2726
+:.git => kotlinx-lincheck/.git
2827
""".trimIndent())
29-
root(DokkaRoot, """
28+
root(DokkaRoot, """
3029
+:docs => dokka/docs
3130
+:.git => dokka/.git
3231
""".trimIndent())
33-
root(APIGuidelinesRoot, """
32+
root(APIGuidelinesRoot, """
3433
+:docs => api-guidelines/docs
3534
+:.git => api-guidelines/.git
3635
""".trimIndent())
37-
}
38-
39-
artifactRules = """
40-
artifacts/*
41-
""".trimIndent()
42-
43-
steps {
44-
script {
45-
name = "Build Kotlin Reference with coroutines documentation with the docker"
46-
scriptContent = """
47-
docker run --rm -v %teamcity.build.checkoutDir%:/opt/sources \
48-
-e SOURCE_DIR=/opt/sources \
49-
-e MODULE_INSTANCE=kotlin-reference/kr \
50-
-e RUNNER=teamcity \
51-
-e FRONTEND=$frontend \
52-
-e OUTPUT_DIR=/opt/sources/artifacts \
53-
registry.jetbrains.team/p/writerside/builder/writerside-builder:$dockerImageTag
54-
""".trimIndent()
5536
}
5637
}
38+
)
5739

58-
requirements {
59-
equals("container.engine","docker")
60-
}
61-
})
40+
//object KotlinWithCoroutines1: BuildType ({
41+
// val dockerImageTag = "2.1.2176-p8483"
42+
// val frontend = "https://kotlinlang.org/docs/static/v3/"
43+
//
44+
// name = "Kotlin Reference with coroutines"
45+
// description = "Kotlin Reference with coroutines documentation build"
46+
//
47+
// vcs {
48+
// root(KotlinReferenceRoot, """
49+
// +:docs => docs
50+
// +:.git => .git
51+
// +:.gitmodules => .gitmodules
52+
// +:docs-test-submodule => docs-test-submodule
53+
// """.trimIndent())
54+
// root(KotlinxCoroutinesRoot,"""
55+
// +:docs => kotlinx.coroutines/docs
56+
// +:.git => kotlinx.coroutines/.git
57+
// """.trimIndent())
58+
// root(KotlinxLincheckRoot, """
59+
// +:docs => kotlinx-lincheck/docs
60+
// +:.git => kotlinx-lincheck/.git
61+
// """.trimIndent())
62+
// root(DokkaRoot, """
63+
// +:docs => dokka/docs
64+
// +:.git => dokka/.git
65+
// """.trimIndent())
66+
// root(APIGuidelinesRoot, """
67+
// +:docs => api-guidelines/docs
68+
// +:.git => api-guidelines/.git
69+
// """.trimIndent())
70+
// }
71+
//
72+
// artifactRules = """
73+
// artifacts/*
74+
// """.trimIndent()
75+
//
76+
// steps {
77+
// script {
78+
// name = "Build Kotlin Reference with coroutines documentation with the docker"
79+
// scriptContent = """
80+
// docker run --rm -v %teamcity.build.checkoutDir%:/opt/sources \
81+
// -e SOURCE_DIR=/opt/sources \
82+
// -e MODULE_INSTANCE=kotlin-reference/kr \
83+
// -e RUNNER=teamcity \
84+
// -e FRONTEND=$frontend \
85+
// -e OUTPUT_DIR=/opt/sources/artifacts \
86+
// registry.jetbrains.team/p/writerside/builder/writerside-builder:$dockerImageTag
87+
// """.trimIndent()
88+
// }
89+
// }
90+
//
91+
// requirements {
92+
// equals("container.engine","docker")
93+
// }
94+
//})

0 commit comments

Comments
 (0)