|
1 | 1 | package documentation.builds
|
2 | 2 |
|
3 | 3 | 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 |
6 | 7 |
|
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, """ |
16 | 15 | +:docs => docs
|
17 | 16 | +:.git => .git
|
18 | 17 | +:.gitmodules => .gitmodules
|
19 | 18 | +:docs-test-submodule => docs-test-submodule
|
20 | 19 | """.trimIndent())
|
21 |
| - root(KotlinxCoroutinesRoot,""" |
| 20 | + root(KotlinxCoroutinesRoot,""" |
22 | 21 | +:docs => kotlinx.coroutines/docs
|
23 | 22 | +:.git => kotlinx.coroutines/.git
|
24 | 23 | """.trimIndent())
|
25 |
| - root(KotlinxLincheckRoot, """ |
| 24 | + root(KotlinxLincheckRoot, """ |
26 | 25 | +:docs => kotlinx-lincheck/docs
|
27 | 26 | +:.git => kotlinx-lincheck/.git
|
28 | 27 | """.trimIndent())
|
29 |
| - root(DokkaRoot, """ |
| 28 | + root(DokkaRoot, """ |
30 | 29 | +:docs => dokka/docs
|
31 | 30 | +:.git => dokka/.git
|
32 | 31 | """.trimIndent())
|
33 |
| - root(APIGuidelinesRoot, """ |
| 32 | + root(APIGuidelinesRoot, """ |
34 | 33 | +:docs => api-guidelines/docs
|
35 | 34 | +:.git => api-guidelines/.git
|
36 | 35 | """.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() |
55 | 36 | }
|
56 | 37 | }
|
| 38 | +) |
57 | 39 |
|
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