jetbrains.buildServer.configs.kotlin.v2017_2 / ArtifactDependency

ArtifactDependency

class ArtifactDependency

TeamCity artifact dependency.

Constructors

<init>

ArtifactDependency()

TeamCity artifact dependency.

Properties

artifactRules

var artifactRules: String

Specifies the way artifacts from the dependency should be copied. Mandatory, empty by default

buildRule

var buildRule: BuildRule

Rule for selecting a dependency build, when not specified sameChainOrLastFinished is used

cleanDestination

var cleanDestination: Boolean

Whether destination directory on agent should be cleaned before copying artifacts, false by default

enabled

var enabled: Boolean

Allows to disable the dependency, it is enabled by default

id

var id: String?

Dependency id, if not specified will be generated

Functions

build

fun build(buildNumber: String): BuildRule

Creates a build rule matching a build with the specified build number

lastFinished

fun lastFinished(branch: String? = null): BuildRule

Creates a build rule matching the last finished build in the specified branch

lastPinned

fun lastPinned(branch: String? = null): BuildRule

Creates a build rule matching a last pinned build in the specified branch

lastSuccessful

fun lastSuccessful(branch: String? = null): BuildRule

Creates a build rule matching the last successful build in the specified branch

sameChainOrLastFinished

fun sameChainOrLastFinished(): BuildRule

Creates a build rule matching the build from the same build chain or last finished build

tag

fun tag(tag: String, branch: String? = null): BuildRule

Creates a build rule matching a build with the specified tag in the specified branch

Extension Functions

copy

fun ArtifactDependency.copy(): ArtifactDependency

Copies the receiver artifact dependency