.bamboo.specs.extension.bamboo-specs-extension.1.2.6.source-code.StageExtension.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bamboo-specs-extension Show documentation
Show all versions of bamboo-specs-extension Show documentation
A Kotlin DSL for Bamboo Specs
package com.atlassian.bamboo.specs.extension
import com.atlassian.bamboo.specs.api.builders.plan.Job
import com.atlassian.bamboo.specs.api.builders.plan.Stage
fun Stage.job(key: String, name: String, description: String? = null, enabled: Boolean? = null, init: SpecsDsl = {}) {
val job = Job(name, key)
if (description != null)
job.description(description)
if (enabled != null)
job.enabled(enabled)
job.init()
this.jobs(job)
}