Compare commits
16 Commits
Author | SHA1 | Date |
---|---|---|
|
fa80dc02f2 | |
|
52870a84f6 | |
|
0a0123c206 | |
|
239ebca079 | |
|
989f60241b | |
|
95cf6ed21e | |
|
6440ebfe56 | |
|
401f9417d0 | |
|
961c983966 | |
|
3c53bb6dc1 | |
|
90fb98c4ec | |
|
ce4329d99b | |
|
c7bd443cbd | |
|
77bf1e30be | |
|
5e88ae561f | |
|
ccd67a82b4 |
30
CHANGELOG.md
30
CHANGELOG.md
|
@ -5,10 +5,38 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
|
## [1.3.2] - 2023-01-12
|
||||||
|
### Fixed requirements
|
||||||
|
- Key words for required agent names
|
||||||
|
|
||||||
|
## [1.3.1] - 2023-01-10
|
||||||
|
### Changed
|
||||||
|
- Move one of agent from ios to android
|
||||||
|
|
||||||
|
## [1.3.0] - 2022-07-29
|
||||||
|
### Fixed
|
||||||
|
- Search "*.aab" artifacts
|
||||||
|
### Added
|
||||||
|
- Build type for china env
|
||||||
|
### Changes
|
||||||
|
- Removed "Setup Skeletor" step
|
||||||
|
- Environment var "artifactsPath" was combined with "artifactsRules"
|
||||||
|
|
||||||
|
## [1.2.1] - 2022-07-19
|
||||||
|
### Added
|
||||||
|
- Environment param for set artifact path
|
||||||
|
|
||||||
|
## [1.2.0] - 2022-06-23
|
||||||
|
### Added
|
||||||
|
- Tasks for build under dev environment, for both platform
|
||||||
|
### Fixed
|
||||||
|
- Removed checkbox "debug" from parameters
|
||||||
|
- Changelog description of version 1.1.0
|
||||||
|
|
||||||
## [1.1.0] - 2022-06-07
|
## [1.1.0] - 2022-06-07
|
||||||
### Fixed
|
### Fixed
|
||||||
- Using of deprecated taskman functions
|
- Using of deprecated taskman functions
|
||||||
- Repalced 'try_deps_update' with 'deps_update'
|
- Replaced "try_deps_update" with "deps_update"
|
||||||
|
|
||||||
## [1.0.1] - 2022-06-07
|
## [1.0.1] - 2022-06-07
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -1 +1,5 @@
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
```
|
||||||
./gamectl setup_teamcity_settings
|
./gamectl setup_teamcity_settings
|
||||||
|
```
|
|
@ -13,7 +13,7 @@ function setup_teamcity_settings($args = array())
|
||||||
|
|
||||||
$cmd = "git config --get remote.origin.url";
|
$cmd = "git config --get remote.origin.url";
|
||||||
$url = str_replace("\n", "", shell_exec($cmd));
|
$url = str_replace("\n", "", shell_exec($cmd));
|
||||||
$name = "\"git: ${url}\"";
|
$name = "\"git: $url\"";
|
||||||
set("TEAM_CITY_SETTINGS_NAME_HERE", $name);
|
set("TEAM_CITY_SETTINGS_NAME_HERE", $name);
|
||||||
set("TEAM_CITY_SETTINGS_URL_HERE", "\"$url\"");
|
set("TEAM_CITY_SETTINGS_URL_HERE", "\"$url\"");
|
||||||
|
|
||||||
|
|
|
@ -55,36 +55,39 @@ project {
|
||||||
parallel {
|
parallel {
|
||||||
//Android
|
//Android
|
||||||
build(BuildAndroid)
|
build(BuildAndroid)
|
||||||
|
build(BuildAndroidDev)
|
||||||
build(UploadArtifactToSlack("Build_Upload_Android", BuildAndroid))
|
build(UploadArtifactToSlack("Build_Upload_Android", BuildAndroid))
|
||||||
|
|
||||||
//IOS
|
//IOS
|
||||||
build(BuildIOS)
|
build(BuildIOS)
|
||||||
|
build(BuildIOSDev)
|
||||||
build(UploadArtifactToSlack("Build_Upload_IOS", BuildIOS))
|
build(UploadArtifactToSlack("Build_Upload_IOS", BuildIOS))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
object BuildAndroid : BuildAndroidType("", "prod/global_android", "+:*")
|
object BuildAndroid : BuildAndroidType("", "prod/global_android")
|
||||||
object BuildIOS : BuildIOSType("", "prod/global_ios", "+:*")
|
object BuildAndroidDev : BuildAndroidType("Dev", "dev/global_android")
|
||||||
|
object BuildAndroidCh : BuildAndroidType("Ch", "prod/china_android")
|
||||||
|
object BuildIOS : BuildIOSType("", "prod/global_ios")
|
||||||
|
object BuildIOSDev : BuildIOSType("Dev", "dev/global_ios")
|
||||||
|
object BuildIOSCh : BuildIOSType("Ch", "prod/china_ios")
|
||||||
|
|
||||||
open class BuildAndroidType(proj : String, env : String, branch: String) :
|
open class BuildAndroidType(name_suffix : String, environment : String) :
|
||||||
BuildType({
|
BuildType({
|
||||||
name = "Build Android"
|
|
||||||
|
|
||||||
var artifact_rules : String = "*.apk\n*.aab"
|
name = "Build Android " + name_suffix
|
||||||
artifactRules = artifact_rules
|
artifactRules = "%build.env.artifactRules%"
|
||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(GitProjectRepo)
|
root(GitProjectRepo)
|
||||||
branchFilter = branch
|
branchFilter = "+:*"
|
||||||
}
|
}
|
||||||
|
|
||||||
params {
|
params {
|
||||||
checkbox("build.env.debug", "false", label = "Debug",
|
|
||||||
description = "Build developer version.", checked = "true")
|
|
||||||
param("build.env.buildName", "%system.teamcity.buildConfName%")
|
param("build.env.buildName", "%system.teamcity.buildConfName%")
|
||||||
param("build.env.workDir", "%system.teamcity.build.workingDir%")
|
param("build.env.workDir", "%system.teamcity.build.workingDir%")
|
||||||
param("build.env.artifactRules", artifact_rules)
|
param("build.env.artifactRules", "artifacts/android/*.apk\nartifacts/android/*.aab")
|
||||||
}
|
}
|
||||||
|
|
||||||
features {
|
features {
|
||||||
|
@ -103,14 +106,7 @@ open class BuildAndroidType(proj : String, env : String, branch: String) :
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
var gamectl_environment = if("%build.env.debug%" == "true") env.replace("global", "dev") else env
|
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
|
||||||
name = "Setup skeletor"
|
|
||||||
scriptContent = "./setup.sh"
|
|
||||||
}
|
|
||||||
script {
|
script {
|
||||||
name = "Deps Update"
|
name = "Deps Update"
|
||||||
scriptContent = "./gamectl deps_update"
|
scriptContent = "./gamectl deps_update"
|
||||||
|
@ -121,36 +117,31 @@ open class BuildAndroidType(proj : String, env : String, branch: String) :
|
||||||
}
|
}
|
||||||
script {
|
script {
|
||||||
name = "Produce"
|
name = "Produce"
|
||||||
scriptContent = "./gamectl --env=" + gamectl_environment + " build_android"
|
scriptContent = "./gamectl --env=" + environment + " build_android"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
requirements {
|
requirements {
|
||||||
equals("teamcity.agent.name", "Default Agent")
|
matches("teamcity.agent.name", "(Default Agent|Default Agent 2)")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
open class BuildIOSType(name_suffix : String, environment : String) :
|
||||||
open class BuildIOSType(proj : String, env : String, branch : String) :
|
|
||||||
BuildType({
|
BuildType({
|
||||||
name = "Build IOS"
|
name = "Build IOS " + name_suffix
|
||||||
|
artifactRules = "%build.env.artifactRules%"
|
||||||
var artifact_rules : String = "*.ipa"
|
|
||||||
artifactRules = artifact_rules
|
|
||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(GitProjectRepo)
|
root(GitProjectRepo)
|
||||||
branchFilter = branch
|
branchFilter = "+:*"
|
||||||
}
|
}
|
||||||
|
|
||||||
params {
|
params {
|
||||||
checkbox("build.env.debug", "false", label = "Debug",
|
|
||||||
description = "Build developer version.", checked = "true")
|
|
||||||
param("build.env.buildName", "%system.teamcity.buildConfName%")
|
param("build.env.buildName", "%system.teamcity.buildConfName%")
|
||||||
param("build.env.workDir", "%system.teamcity.build.workingDir%")
|
param("build.env.workDir", "%system.teamcity.build.workingDir%")
|
||||||
param("build.env.artifactRules", artifact_rules)
|
param("build.env.artifactRules", "artifacts/ios/*.ipa")
|
||||||
}
|
}
|
||||||
|
|
||||||
features {
|
features {
|
||||||
|
@ -169,13 +160,7 @@ open class BuildIOSType(proj : String, env : String, branch : String) :
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var gamectl_environment = if("%build.env.debug%" == "true") env.replace("global", "dev") else env
|
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
|
||||||
name = "Setup skeletor"
|
|
||||||
scriptContent = "./setup.sh"
|
|
||||||
}
|
|
||||||
script {
|
script {
|
||||||
name = "Deps Update"
|
name = "Deps Update"
|
||||||
scriptContent = "./gamectl deps_update"
|
scriptContent = "./gamectl deps_update"
|
||||||
|
@ -186,12 +171,12 @@ open class BuildIOSType(proj : String, env : String, branch : String) :
|
||||||
}
|
}
|
||||||
script {
|
script {
|
||||||
name = "Produce"
|
name = "Produce"
|
||||||
scriptContent = "./gamectl --env=" + gamectl_environment + " build_ios"
|
scriptContent = "./gamectl --env=" + environment + " build_ios"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
requirements {
|
requirements {
|
||||||
matches("teamcity.agent.name", "(Default Agent 2|Default Agent 3)")
|
equals("teamcity.agent.name", "Default Agent 3")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
{}
|
{}
|
||||||
|
|
Loading…
Reference in New Issue