Environment param for set artifact path
This commit is contained in:
parent
90fb98c4ec
commit
3c53bb6dc1
|
@ -5,6 +5,10 @@ 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.2.1] - 2022-07-19
|
||||||
|
### Added
|
||||||
|
- Environment param for set artifact path
|
||||||
|
|
||||||
## [1.2.0] - 2022-06-23
|
## [1.2.0] - 2022-06-23
|
||||||
### Added
|
### Added
|
||||||
- Tasks for build under dev environment, for both platform
|
- Tasks for build under dev environment, for both platform
|
||||||
|
|
|
@ -73,10 +73,18 @@ object BuildIOSDev : BuildIOSType("Dev", "dev/global_ios")
|
||||||
|
|
||||||
open class BuildAndroidType(name_suffix : String, environment : String) :
|
open class BuildAndroidType(name_suffix : String, environment : String) :
|
||||||
BuildType({
|
BuildType({
|
||||||
|
|
||||||
name = "Build Android " + name_suffix
|
name = "Build Android " + name_suffix
|
||||||
|
|
||||||
var artifact_rules : String = "*.apk\n*.aab"
|
var artifact_path : String = "%build.env.artifactPath%"
|
||||||
artifactRules = artifact_rules
|
var artifact_rules : String = "%build.env.artifactRules%"
|
||||||
|
var artifact_rules_with_path : String = ""
|
||||||
|
|
||||||
|
artifact_rules.split("\n").forEach {
|
||||||
|
artifact_rules_with_path += artifact_path + it + "\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
artifactRules = artifact_rules_with_path
|
||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(GitProjectRepo)
|
root(GitProjectRepo)
|
||||||
|
@ -86,7 +94,8 @@ open class BuildAndroidType(name_suffix : String, environment : String) :
|
||||||
params {
|
params {
|
||||||
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.artifactPath", "artifacts/android/")
|
||||||
|
param("build.env.artifactRules", "*.apk\n*.aab")
|
||||||
}
|
}
|
||||||
|
|
||||||
features {
|
features {
|
||||||
|
@ -131,13 +140,19 @@ open class BuildAndroidType(name_suffix : String, environment : String) :
|
||||||
)
|
)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
open class BuildIOSType(name_suffix : String, environment : String) :
|
open class BuildIOSType(name_suffix : String, environment : String) :
|
||||||
BuildType({
|
BuildType({
|
||||||
name = "Build IOS " + name_suffix
|
name = "Build IOS " + name_suffix
|
||||||
|
|
||||||
var artifact_rules : String = "*.ipa"
|
var artifact_path : String = "%build.env.artifactPath%"
|
||||||
artifactRules = artifact_rules
|
var artifact_rules : String = "%build.env.artifactRules%"
|
||||||
|
var artifact_rules_with_path : String = ""
|
||||||
|
|
||||||
|
artifact_rules.split("\n").forEach {
|
||||||
|
artifact_rules_with_path += artifact_path + it + "\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
artifactRules = artifact_rules_with_path
|
||||||
|
|
||||||
vcs {
|
vcs {
|
||||||
root(GitProjectRepo)
|
root(GitProjectRepo)
|
||||||
|
@ -147,7 +162,8 @@ open class BuildIOSType(name_suffix : String, environment : String) :
|
||||||
params {
|
params {
|
||||||
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.artifactPath", "artifacts/ios/")
|
||||||
|
param("build.env.artifactRules", "*.ipa")
|
||||||
}
|
}
|
||||||
|
|
||||||
features {
|
features {
|
||||||
|
|
Loading…
Reference in New Issue