Compare commits

...

17 Commits

Author SHA1 Message Date
Pavel Shevaev fa80dc02f2 Обновить teamcity.inc.php 2024-04-03 12:21:21 +03:00
Зеленцов Никита 52870a84f6 Merge branch 'master' of https://git.bit5.ru/bit/taskman_teamcity 2023-01-13 00:38:52 +03:00
Зеленцов Никита 0a0123c206 fix error with required agent names 2023-01-13 00:38:44 +03:00
Зеленцов Никита 239ebca079 Удалить '.DS_Store' 2023-01-10 13:58:30 +03:00
Зеленцов Никита 989f60241b move one agent from ios to android 2023-01-10 13:57:50 +03:00
Зеленцов Никита 95cf6ed21e update changelog 2022-07-29 12:22:25 +03:00
Зеленцов Никита 6440ebfe56 update changelog 2022-07-29 12:21:56 +03:00
Зеленцов Никита 401f9417d0 update changelog 2022-07-29 12:20:13 +03:00
Зеленцов Никита 961c983966 fix teamcity find artifacts 2022-07-29 12:06:54 +03:00
Зеленцов Никита 3c53bb6dc1 Environment param for set artifact path 2022-07-19 11:56:30 +03:00
Зеленцов Никита 90fb98c4ec update changelog 2022-06-23 12:05:47 +03:00
Зеленцов Никита ce4329d99b fix build task, add call launch build 2022-06-23 12:04:39 +03:00
Зеленцов Никита c7bd443cbd update changelog 2022-06-23 11:36:24 +03:00
Зеленцов Никита 77bf1e30be update readme 2022-06-23 11:30:46 +03:00
Зеленцов Никита 5e88ae561f fix naming error 2022-06-23 11:28:43 +03:00
Зеленцов Никита ccd67a82b4 remove debug checkbox, add tasks for dev builds 2022-06-23 11:20:23 +03:00
wrenge b78c5a4c1e Various fixes 2022-06-07 14:35:52 +03:00
4 changed files with 66 additions and 44 deletions

View File

@ -5,6 +5,39 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
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
### Fixed
- Using of deprecated taskman functions
- Replaced "try_deps_update" with "deps_update"
## [1.0.1] - 2022-06-07
### Added
- Skeletor setup step

View File

@ -1 +1,5 @@
./gamectl setup_teamcity_settings
## Setup
```
./gamectl setup_teamcity_settings
```

View File

@ -13,9 +13,9 @@ function setup_teamcity_settings($args = array())
$cmd = "git config --get remote.origin.url";
$url = str_replace("\n", "", shell_exec($cmd));
$name = "\"git: ${url}\"";
taskman_propset("TEAM_CITY_SETTINGS_NAME_HERE", $name);
taskman_propset("TEAM_CITY_SETTINGS_URL_HERE", "\"$url\"");
$name = "\"git: $url\"";
set("TEAM_CITY_SETTINGS_NAME_HERE", $name);
set("TEAM_CITY_SETTINGS_URL_HERE", "\"$url\"");
gen_build_file(__DIR__ . "/teamcity/settings.kts.in",
"$GAME_ROOT/.teamcity/settings.kts");

View File

@ -55,36 +55,39 @@ 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 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({
name = "Build Android"
var artifact_rules : String = "*.apk\n*.aab"
artifactRules = artifact_rules
name = "Build Android " + name_suffix
artifactRules = "%build.env.artifactRules%"
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)
param("build.env.artifactRules", "artifacts/android/*.apk\nartifacts/android/*.aab")
}
features {
@ -103,17 +106,10 @@ 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"
scriptContent = "./setup.sh"
}
script {
name = "Deps Update"
scriptContent = "./gamectl try_deps_update"
scriptContent = "./gamectl deps_update"
}
script {
name = "Clean"
@ -121,36 +117,31 @@ open class BuildAndroidType(proj : String, env : String, branch: String) :
}
script {
name = "Produce"
scriptContent = "./gamectl --env=" + gamectl_environment + " build_android"
scriptContent = "./gamectl --env=" + environment + " build_android"
}
}
requirements {
equals("teamcity.agent.name", "Default Agent")
matches("teamcity.agent.name", "(Default Agent|Default Agent 2)")
}
}
)
{}
open class BuildIOSType(proj : String, env : String, branch : String) :
open class BuildIOSType(name_suffix : String, environment : String) :
BuildType({
name = "Build IOS"
var artifact_rules : String = "*.ipa"
artifactRules = artifact_rules
name = "Build IOS " + name_suffix
artifactRules = "%build.env.artifactRules%"
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)
param("build.env.artifactRules", "artifacts/ios/*.ipa")
}
features {
@ -169,16 +160,10 @@ 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"
scriptContent = "./setup.sh"
}
script {
name = "Deps Update"
scriptContent = "./gamectl try_deps_update"
scriptContent = "./gamectl deps_update"
}
script {
name = "Clean"
@ -186,12 +171,12 @@ open class BuildIOSType(proj : String, env : String, branch : String) :
}
script {
name = "Produce"
scriptContent = "./gamectl --env=" + gamectl_environment + " build_ios"
scriptContent = "./gamectl --env=" + environment + " build_ios"
}
}
requirements {
matches("teamcity.agent.name", "(Default Agent 2|Default Agent 3)")
equals("teamcity.agent.name", "Default Agent 3")
}
})
{}