snapshot
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
}
}Content copied to clipboard
Parameters
build Type
buildType to depend on
init
function to initialize the snapshot dependency
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
}
}Content copied to clipboard
Parameters
pipeline
buildType to depend on
init
function to initialize the snapshot dependency
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
}
}Content copied to clipboard
Parameters
build Type Id
id of the buildType or pipeline to depend on
init
function to initialize the snapshot dependency