class ArtifactDependency
TeamCity artifact dependency.
ArtifactDependency()
TeamCity artifact dependency. |
var artifactRules: String
New-line separated list of artifact rules specifying the way artifacts from the dependency should be copied. Mandatory, empty by default. |
|
var buildRule: BuildRule
Rule for selecting a dependency build, when not specified sameChainOrLastFinished is used |
|
var cleanDestination: Boolean
Whether destination directory on agent should be cleaned before copying artifacts, false by default |
|
var enabled: Boolean
Allows to disable the dependency, it is enabled by default |
|
var id: String?
Dependency id, if not specified will be generated |
|
var rules: List<ArtifactRule>
Typed API for artifactRules |
fun build(buildNumber: String): BuildRule
Creates a build rule matching a build with the specified build number |
|
fun lastFinished(branch: String? = null): BuildRule
Creates a build rule matching the last finished build in the specified branch |
|
fun lastPinned(branch: String? = null): BuildRule
Creates a build rule matching a last pinned build in the specified branch |
|
fun lastSuccessful(branch: String? = null): BuildRule
Creates a build rule matching the last successful build in the specified branch |
|
fun sameChainOrLastFinished(): BuildRule
Creates a build rule matching the build from the same build chain or last finished build |
|
fun tag(tag: String, branch: String? = null): BuildRule
Creates a build rule matching a build with the specified tag in the specified branch |
fun ArtifactDependency.copy(): ArtifactDependency
Copies the receiver artifact dependency |