SnapshotDependency

class SnapshotDependency

TeamCity snapshot dependency.

Example. Snapshot dependency with disabled reuse of existing builds

Snapshot dependencies form a build chain.

dependencies {
    snapshot(AnotherBuild) {
        reuseBuilds = ReuseBuilds.NO
    }
}

Constructors

Link copied to clipboard
fun SnapshotDependency()

Properties

Link copied to clipboard
var onDependencyCancel: FailureAction

Acton to take on dependency build fail to start

Link copied to clipboard
var onDependencyFailure: FailureAction

Acton to take on dependency build failure

Link copied to clipboard
var reuseBuilds: ReuseBuilds

Reuse builds mode

Link copied to clipboard
var runOnSameAgent: Boolean = false

Whether dependent build should run on the same agent as dependency

Link copied to clipboard
var synchronizeRevisions: Boolean = true

When true revisions will be synchronized between dependant builds.

Extensions

Link copied to clipboard
fun SnapshotDependency.copy(): SnapshotDependency

Copies the receiver snapshot dependency