mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
fix secondary branches builds
Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
2 files changed
+8
-57
No files matched your search
-45
@@ -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()
|
||||
}
|
||||
}
|
||||
Vendored
+8
-12
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user