diff --git a/core/src/main/kotlin/com/code42/jenkins/pipelinekt/core/Environment.kt b/core/src/main/kotlin/com/code42/jenkins/pipelinekt/core/Environment.kt new file mode 100644 index 00000000..9c1b1935 --- /dev/null +++ b/core/src/main/kotlin/com/code42/jenkins/pipelinekt/core/Environment.kt @@ -0,0 +1,5 @@ +package com.code42.jenkins.pipelinekt.core + +import com.code42.jenkins.pipelinekt.core.writer.GroovyScript + +interface Environment : GroovyScript diff --git a/core/src/main/kotlin/com/code42/jenkins/pipelinekt/core/Pipeline.kt b/core/src/main/kotlin/com/code42/jenkins/pipelinekt/core/Pipeline.kt index 4c703a42..96140719 100644 --- a/core/src/main/kotlin/com/code42/jenkins/pipelinekt/core/Pipeline.kt +++ b/core/src/main/kotlin/com/code42/jenkins/pipelinekt/core/Pipeline.kt @@ -15,6 +15,7 @@ fun generatePipeline(pipeline: Pipeline, outFile: String, indentStr: String = " } data class Pipeline( + val environment: List = emptyList(), val agent: Agent? = null, val tools: List = emptyList(), val options: List