remove debug checkbox, add tasks for dev builds
This commit is contained in:
parent
b78c5a4c1e
commit
ccd67a82b4
|
@ -55,33 +55,35 @@ project {
|
|||
parallel {
|
||||
//Android
|
||||
build(BuildAndroid)
|
||||
build(BuildAndroidDev)
|
||||
build(UploadArtifactToSlack("Build_Upload_Android", BuildAndroid))
|
||||
|
||||
//IOS
|
||||
build(BuildIOS)
|
||||
build(BuildIOSDev)
|
||||
build(UploadArtifactToSlack("Build_Upload_IOS", BuildIOS))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
object BuildAndroid : BuildAndroidType("", "prod/global_android", "+:*")
|
||||
object BuildIOS : BuildIOSType("", "prod/global_ios", "+:*")
|
||||
object BuildAndroid : BuildAndroidType("", "prod/global_android")
|
||||
object BuildAnroidDev : BuildAndroidType("Dev", "dev/global_android")
|
||||
object BuildIOS : BuildIOSType("", "prod/global_ios")
|
||||
object BuildIOSDev : BuildIOSType("Dev", "dev/global_ios")
|
||||
|
||||
open class BuildAndroidType(proj : String, env : String, branch: String) :
|
||||
open class BuildAndroidType(name_suffix : String, environment : String) :
|
||||
BuildType({
|
||||
name = "Build Android"
|
||||
name = "Build Android " + name_suffix
|
||||
|
||||
var artifact_rules : String = "*.apk\n*.aab"
|
||||
artifactRules = artifact_rules
|
||||
|
||||
vcs {
|
||||
root(GitProjectRepo)
|
||||
branchFilter = branch
|
||||
branchFilter = "+:*"
|
||||
}
|
||||
|
||||
params {
|
||||
checkbox("build.env.debug", "false", label = "Debug",
|
||||
description = "Build developer version.", checked = "true")
|
||||
param("build.env.buildName", "%system.teamcity.buildConfName%")
|
||||
param("build.env.workDir", "%system.teamcity.build.workingDir%")
|
||||
param("build.env.artifactRules", artifact_rules)
|
||||
|
@ -103,12 +105,9 @@ open class BuildAndroidType(proj : String, env : String, branch: String) :
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
var gamectl_environment = if("%build.env.debug%" == "true") env.replace("global", "dev") else env
|
||||
|
||||
steps {
|
||||
script {
|
||||
name = "Setup skeletor"
|
||||
name = "Setup Skeletor"
|
||||
scriptContent = "./setup.sh"
|
||||
}
|
||||
script {
|
||||
|
@ -121,7 +120,7 @@ open class BuildAndroidType(proj : String, env : String, branch: String) :
|
|||
}
|
||||
script {
|
||||
name = "Produce"
|
||||
scriptContent = "./gamectl --env=" + gamectl_environment + " build_android"
|
||||
scriptContent = "./gamectl --env=" + environment
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -133,21 +132,19 @@ open class BuildAndroidType(proj : String, env : String, branch: String) :
|
|||
{}
|
||||
|
||||
|
||||
open class BuildIOSType(proj : String, env : String, branch : String) :
|
||||
open class BuildIOSType(name_suffix : String, environment : String) :
|
||||
BuildType({
|
||||
name = "Build IOS"
|
||||
name = "Build IOS " + name_suffix
|
||||
|
||||
var artifact_rules : String = "*.ipa"
|
||||
artifactRules = artifact_rules
|
||||
|
||||
vcs {
|
||||
root(GitProjectRepo)
|
||||
branchFilter = branch
|
||||
branchFilter = "+:*"
|
||||
}
|
||||
|
||||
params {
|
||||
checkbox("build.env.debug", "false", label = "Debug",
|
||||
description = "Build developer version.", checked = "true")
|
||||
param("build.env.buildName", "%system.teamcity.buildConfName%")
|
||||
param("build.env.workDir", "%system.teamcity.build.workingDir%")
|
||||
param("build.env.artifactRules", artifact_rules)
|
||||
|
@ -169,11 +166,9 @@ open class BuildIOSType(proj : String, env : String, branch : String) :
|
|||
}
|
||||
}
|
||||
|
||||
var gamectl_environment = if("%build.env.debug%" == "true") env.replace("global", "dev") else env
|
||||
|
||||
steps {
|
||||
script {
|
||||
name = "Setup skeletor"
|
||||
name = "Setup Skeletor"
|
||||
scriptContent = "./setup.sh"
|
||||
}
|
||||
script {
|
||||
|
@ -186,7 +181,7 @@ open class BuildIOSType(proj : String, env : String, branch : String) :
|
|||
}
|
||||
script {
|
||||
name = "Produce"
|
||||
scriptContent = "./gamectl --env=" + gamectl_environment + " build_ios"
|
||||
scriptContent = "./gamectl --env=" + environment
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue