dependency

fun dependency(jobId: String)

Adds a dependency on a job with the specified id.

Example:

dependency("build")

Parameters

jobId

id of the job to depend on


fun dependency(jobId: String, files: List<String>)

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"))

Parameters

jobId

id of the job to depend on

files

list of files to depend on


fun dependency(job: Job)

Adds a dependency on the specified job

Parameters

job

the job to depend on


fun dependency(job: Job, files: List<String>)

Adds a dependency on the specified job with a list of files

Parameters

job

the job to depend on

files

list of files to depend on