pipeline

Creates and builds a Pipeline using the provided configuration block.

Example:

val pipeline = pipeline {
  commandStep {
    label = "Run tests"
    command = "run-tests.sh"
    env {
      "ENV_VAR" to "value"
    }
  }
}