pipeline

fun pipeline(pipeline: Pipeline)

Registers the specified pipeline in this project.

Example. Pipeline defined as an object

object Main: Project({
name = "Main"
description = "The project main branch"

pipeline(MyPipeline)
})

object MyPipeline: Pipeline({
// ...
})

Parameters

pipeline

pipeline to register

See also


fun pipeline(init: Pipeline.() -> Unit): Pipeline

Registers a new pipeline initialized with the specified block in this project.

Example. Pipeline defined in-place

pipeline {
id("BuildAndDeploy")
name = "Build and Deploy"

job("build") {
// job configuration
}

job("deploy") {
// job configuration
}
}

Return

added pipeline

Parameters

init

initialization block

See also