artifacts

fun artifacts(configuration: Artifacts.() -> Unit)(source)

Declares paths that will be saved at the end of the job, and can later be consumed by other jobs in the same pipeline.

To learn more about configuring artifacts, see Artifacts.

Example

val test by job {
script {
shell("echo '1.1' version.txt")
}

artifacts {
include("version.txt")
}
}

External resources