Skip to content

Commit bdf068d

Browse files
committed
Create separate buildtype for downloading ribasim release binaries
2 parents e82e8b4 + fd202bb commit bdf068d

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

.teamcity/IMODCollector/Project.kt

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,48 @@
11
package IMODCollector
22

33
import IMODCollector.buildTypes.*
4-
import jetbrains.buildServer.configs.kotlin.*
4+
import jetbrains.buildServer.configs.kotlin.BuildType
5+
56
import jetbrains.buildServer.configs.kotlin.Project
7+
import jetbrains.buildServer.configs.kotlin.buildSteps.script
68

79
object Project : Project({
810
id("IMODCollector")
911
name = "iMOD_Collector"
1012
description = "Collect iMOD6 coupled components + coupler into a single package"
1113
buildType(IMODCollector_X64development)
14+
buildType(Ribasim_binaries)
1215
})
16+
17+
object Ribasim_binaries : BuildType({
18+
name = "Ribasim binaries"
19+
description = "Download Ribasim release binaries"
20+
21+
artifactRules = """
22+
ribasim/* => ribasim.zip!
23+
""".trimIndent()
24+
25+
params {
26+
select("RIBASIM_Platform", "",
27+
options = listOf("windows", "linux"))
28+
select("RIBASIM_Version", "",
29+
options = listOf("v2025.11.0", "v2024.4.0", "v2024.3.0", "v2024.2.0"))
30+
}
31+
32+
vcs {
33+
}
34+
35+
steps {
36+
script {
37+
name = "Download Ribasim"
38+
scriptContent = """
39+
wget https://github.com/Deltares/Ribasim/releases/download/%RIBASIM_Version%/ribasim_%RIBASIM_Platform%.zip -O ribasim.zip
40+
unzip "ribasim.zip"
41+
""".trimIndent()
42+
}
43+
}
44+
45+
requirements {
46+
equals("teamcity.agent.jvm.os.name", "Linux")
47+
}
48+
})

0 commit comments

Comments
 (0)