The pipeline is then uses as follows (e.g. in
library identifier: "pipeline-helper@master"
defaultCiPipelineGeneric {
nodes = 'windows-test'
buildScript = 'build.groovy'
}
That actually works fine. Now If i introduce additional methods like this:
def call(body) {
this.call(body, null)
}
def call(body, buildFunction) {
this.call(body, null, null)
}
def call(body, buildFunction, deployFunction) {
// evaluate the body block, and collect configuration into the object
def pipelineParams= [:]
body.resolveStrategy = Closure.DELEGATE_FIRST
body.delegate = pipelineParams
body()
pipelineParams = initializePipeline(pipelineParams, pipelineParams.buildType)
pipeline {
agent {
label pipelineParams.nodes
}