job

fun job(id: String, init: Job.() -> Unit): Job

Adds a job to the pipeline.

Example:

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

Return

added job

Parameters

id

job id

init

function to initialize the job