-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a major PR reafctoring the teamcity pipelines. The goal is: - to avoid code duplication - make it easy to extend (add or remove other build steps) - make it more aligned with other projects (imod-python, coupler, etc) The structure has changed slighlty Both the windows and linux projects have a Main buildstep. This buildstep is a composite buildstep. That means that is isn't building anything directly, instead it triggers dependend buildsteps. This is the starting point of the pipeline and only this builstep is directly triggered from github It then follows the chain and start the beginning. Duplicate code have been extracted to Templates. The templates have been made in such a way that they can both be used by the linux build aswell as by the windows builds.
- Loading branch information
Showing
21 changed files
with
435 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
package Ribasim_Linux | ||
|
||
import Ribasim.vcsRoots.Ribasim | ||
import Templates.* | ||
import jetbrains.buildServer.configs.kotlin.BuildType | ||
import jetbrains.buildServer.configs.kotlin.FailureAction | ||
import jetbrains.buildServer.configs.kotlin.Project | ||
import jetbrains.buildServer.configs.kotlin.triggers.vcs | ||
|
||
object RibasimLinuxProject : Project({ | ||
id("Ribasim_Linux") | ||
name = "Ribasim_Linux" | ||
|
||
buildType(Linux_Main) | ||
buildType(Linux_BuildRibasim) | ||
buildType(Linux_TestRibasimBinaries) | ||
|
||
template(LinuxAgent) | ||
template(BuildLinux) | ||
template(TestBinariesLinux) | ||
}) | ||
|
||
object Linux_Main : BuildType({ | ||
name = "RibasimMain" | ||
|
||
templates(GithubPullRequestsIntegration) | ||
|
||
allowExternalStatus = true | ||
type = Type.COMPOSITE | ||
|
||
vcs { | ||
root(Ribasim, ". => ribasim") | ||
cleanCheckout = true | ||
} | ||
|
||
triggers { | ||
vcs { | ||
} | ||
} | ||
|
||
dependencies { | ||
snapshot(Linux_TestRibasimBinaries) { | ||
onDependencyFailure = FailureAction.FAIL_TO_START | ||
} | ||
} | ||
}) | ||
|
||
object Linux_BuildRibasim : BuildType({ | ||
templates( | ||
LinuxAgent, | ||
GithubCommitStatusIntegration, | ||
BuildLinux | ||
) | ||
|
||
name = "Build Ribasim" | ||
|
||
artifactRules = """ribasim\build\ribasim => ribasim_linux.zip""" | ||
}) | ||
|
||
object Linux_TestRibasimBinaries : BuildType({ | ||
templates(LinuxAgent, GithubCommitStatusIntegration, TestBinariesLinux) | ||
name = "Test Ribasim Binaries" | ||
|
||
dependencies { | ||
dependency(Linux_BuildRibasim) { | ||
snapshot { | ||
} | ||
|
||
artifacts { | ||
id = "ARTIFACT_DEPENDENCY_570" | ||
cleanDestination = true | ||
artifactRules = """ | ||
ribasim_linux.zip!** => ribasim/build/ribasim | ||
""".trimIndent() | ||
} | ||
} | ||
} | ||
}) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.