snapshot

fun snapshot(buildType: BuildType, init: SnapshotDependency.() -> Unit)

Adds a snapshot dependency on the specified buildType

Example. Snapshot dependency with disabled reuse of existing builds

Snapshot dependencies form a build chain.

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

Parameters

buildType

buildType to depend on

init

function to initialize the snapshot dependency


fun snapshot(pipeline: Pipeline, init: SnapshotDependency.() -> Unit)

Adds a snapshot dependency on the specified pipeline

Example. Snapshot dependency with disabled reuse of existing builds

Snapshot dependencies form a build chain.

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

Parameters

pipeline

buildType to depend on

init

function to initialize the snapshot dependency


fun snapshot(buildTypeId: Id, init: SnapshotDependency.() -> Unit)

Adds a snapshot dependency on the buildType or the pipeline with the specified id

Example. Snapshot dependency with disabled reuse of existing builds

Snapshot dependencies form a build chain.

dependencies {
snapshot("AnotherBuildId") {
reuseBuilds = ReuseBuilds.NO
}
}

Parameters

buildTypeId

id of the buildType or pipeline to depend on

init

function to initialize the snapshot dependency