dependency
Adds a dependency on a job with the specified id.
Example:
dependency("build")Content copied to clipboard
Parameters
job Id
id of the job to depend on
Adds a dependency on a job with the specified id and a list of files.
Example:
dependency("build", listOf("build/libs/app.jar", "build/reports"))Content copied to clipboard
Parameters
job Id
id of the job to depend on
files
list of files to depend on
Adds a dependency on a job with the specified id and configures its options via a block.
Example:
dependency("build") {
runJobIfUpstreamFails = true
}
dependency("test") {
files = listOf("build/reports/**/*")
runJobIfUpstreamFails = true
}Content copied to clipboard
Parameters
job Id
id of the job to depend on
init
function to configure the dependency options
Adds a dependency on the specified job.
Example:
dependency(Build)Content copied to clipboard
Parameters
job
the job to depend on
Adds a dependency on the specified job with a list of files.
Example:
dependency(Build, listOf("build/libs/app.jar", "build/reports"))Content copied to clipboard
Parameters
job
the job to depend on
files
list of files to depend on
Adds a dependency on the specified job and configures its options via a block.
Example:
dependency(Build) {
runJobIfUpstreamFails = true
}Content copied to clipboard
Parameters
job
the job to depend on
init
function to configure the dependency options