fix secondary branches builds

Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
cpw committed 2022-01-15 14:21:01 -05:00
1 parent d494ba9be4
commit edcc8b3c97
2 files changed
+8 -57

No files matched your search

@@ -1,45 +0,0 @@
package patches.buildTypes
import jetbrains.buildServer.configs.kotlin.v2019_2.*
import jetbrains.buildServer.configs.kotlin.v2019_2.ui.*
/*
This patch script was generated by TeamCity on settings change in UI.
To apply the patch, change the buildType with id = 'MinecraftForge_MinecraftForge__BuildSecondaryBranches'
accordingly, and delete the patch script.
*/
changeBuildType(RelativeId("MinecraftForge_MinecraftForge__BuildSecondaryBranches")) {
params {
add {
param("git_branch_spec", """
+:refs/heads/(*)
-:refs/heads/noci*
""".trimIndent())
}
}
vcs {
check(branchFilter == """
+:*
-:refs/heads/(develop|release|staging|main|master)
-:<default>
-:refs/heads/%git_main_branch%
-:refs/heads/main*
-:refs/heads/master*
-:refs/heads/1.*
-:(develop|release|staging|main|master)
-:%git_main_branch%
-:main*
-:master*
-:1.*
""".trimIndent()) {
"Unexpected option value: branchFilter = $branchFilter"
}
branchFilter = """
+:*
-:1.*
-:<default>
""".trimIndent()
}
}
+8 -12
View File
@@ -89,21 +89,17 @@ object BuildSecondaryBranches : BuildType({
id("MinecraftForge_MinecraftForge__BuildSecondaryBranches")
name = "Build - Secondary Branches"
description = "Builds and Publishes the secondary branches of the project."
params {
text("git_branch_spec", """
+:refs/heads/(*)
-:refs/heads/noci*
""".trimIndent(), label = "The branch specification of the repository", description = "By default all main branches are build by the configuration. Modify this value to adapt the branches build.", display = ParameterDisplay.HIDDEN, allowEmpty = true)
}
vcs {
branchFilter = """
+:*
-:refs/heads/(develop|release|staging|main|master)
+:*
-:1.*
-:<default>
-:refs/heads/%git_main_branch%
-:refs/heads/main*
-:refs/heads/master*
-:refs/heads/1.*
-:(develop|release|staging|main|master)
-:%git_main_branch%
-:main*
-:master*
-:1.*
""".trimIndent()
}
})