File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
.teamcity/builds/kotlinlang/buidTypes Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
1
package builds.kotlinlang.buidTypes
2
2
3
+ import BuildParams.DOKKA_TEMPLATES_VERSION
3
4
import builds.SCRIPT_PATH
4
5
import builds.kotlinlang.templates.DockerImageBuilder
5
6
import jetbrains.buildServer.configs.kotlin.BuildType
@@ -13,14 +14,19 @@ object PdfGenerator : BuildType({
13
14
templates(DockerImageBuilder )
14
15
15
16
artifactRules = """
16
- dist/docs/pdf.html
17
- pdf/kotlin-docs.pdf
17
+ dist/** => dist.zip!
18
+ dist/docs/pdf.html
19
+ pdf/kotlin-docs.pdf
18
20
""" .trimIndent()
19
21
20
22
requirements {
21
23
doesNotContain("docker.server.osType", "windows")
22
24
}
23
25
26
+ params {
27
+ booleanParameter("with-pdf", "true")
28
+ }
29
+
24
30
steps {
25
31
script {
26
32
id = " script-dist-pdf-html"
@@ -36,11 +42,12 @@ object PdfGenerator : BuildType({
36
42
workingDir = SCRIPT_PATH
37
43
}
38
44
script {
45
+ conditions {
46
+ equals("param.with-pdf", "true")
47
+ }
39
48
name = " Generate PDF"
40
49
// language=sh
41
- scriptContent = """
42
- ./scripts/pdf.sh
43
- """ .trimIndent()
50
+ scriptContent = " ./scripts/pdf.sh"
44
51
dockerImage = " python:3.9"
45
52
}
46
53
}
You can’t perform that action at this time.
0 commit comments