File tree Expand file tree Collapse file tree 3 files changed +51
-1
lines changed Expand file tree Collapse file tree 3 files changed +51
-1
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package documentation
2
2
3
3
import documentation.builds.KotlinMultiplatform
4
4
import documentation.builds.KotlinWithCoroutines
5
+ import documentation.vcsRoots.KotlinMultiplatformVCS
5
6
import jetbrains.buildServer.configs.kotlin.Project
6
7
7
8
object DocumentationProject: Project({
@@ -16,4 +17,6 @@ object DocumentationProject: Project({
16
17
buildTypesOrder.forEach {
17
18
buildType(it)
18
19
}
20
+
21
+ vcsRoot(KotlinMultiplatformVCS )
19
22
})
Original file line number Diff line number Diff line change 1
1
package documentation.builds
2
2
3
+ import documentation.vcsRoots.KotlinMultiplatformVCS
3
4
import jetbrains.buildServer.configs.kotlin.BuildType
5
+ import jetbrains.buildServer.configs.kotlin.buildSteps.script
4
6
5
7
object KotlinMultiplatform: BuildType ({
6
8
name = " Kotlin Multiplatform"
7
- description = " Kotlin Multiplatform documentation build"
9
+ description = " KTL-2775 Migrate KMP Dev Docs: Create a Build of KMP Dev Docs in Our Pipeline"
10
+
11
+ vcs {
12
+ root(KotlinMultiplatformVCS )
13
+ }
14
+
15
+ artifactRules = """
16
+ artifacts/*
17
+ """ .trimIndent()
18
+
19
+ steps {
20
+ script {
21
+ name = " Build documentation"
22
+ scriptContent = """
23
+ #!/bin/bash
24
+ set -e -x -u
25
+
26
+ docker run --rm -v %teamcity.build.checkoutDir%:/opt/sources \
27
+ registry.jetbrains.team/p/writerside/builder/writerside-builder:latest \
28
+ /bin/bash -c "
29
+ export DISPLAY=:99 && Xvfb :99 & /opt/builder/bin/idea.sh helpbuilderinspect \
30
+ --source-dir /opt/sources \
31
+ --product kotlin-multiplatform-docs/mpd \
32
+ --runner teamcity \
33
+ --frontend-url https://kotlinlang.org/docs/static/v3/ \
34
+ --output-dir /opt/sources/artifacts"
35
+ "
36
+ """ .trimIndent()
37
+ }
38
+ }
39
+
40
+
8
41
})
Original file line number Diff line number Diff line change
1
+ package documentation.vcsRoots
2
+
3
+ import jetbrains.buildServer.configs.kotlin.vcs.GitVcsRoot
4
+
5
+ object KotlinMultiplatformVCS: GitVcsRoot ({
6
+ name = " Kotlin Multiplatform root"
7
+ url = " https://github.com/JetBrains/kotlin-multiplatform-dev-docs.git"
8
+ branch = " refs/heads/master"
9
+ branchSpec = " +:refs/heads/*"
10
+ checkoutPolicy = AgentCheckoutPolicy .AUTO
11
+ authMethod = uploadedKey {
12
+ uploadedKey = " default teamcity key"
13
+ }
14
+ })
You can’t perform that action at this time.
0 commit comments