job

fun job(init: Job.() -> Unit): Job

Adds a job to the pipeline.

Example:

job {
id("build")
name = "Build Application"
steps {
gradle {
tasks = "clean build"
}
}
}

Return

added job

Parameters

init

function to initialize the job


fun job(job: Job)

Adds a job to the pipeline.

Example:

job(BuildApplication) // 'BuildApplication' object is defined elsewhere

Parameters

job

the job to add