it look like i am note able to get the envInjectJobProperty working in a Multijob.
I try to add
properties {
envInjectJobProperty {
keepBuildVariables(true)
keepJenkinsSystemVariables(true)
info {
propertiesContent('KEY=VALUE')
}
}
}
to a multijob but i get everytime:
ERROR: (puppet.groovy, line 77) the following options are required and must be specified: propertiesFilePath, scriptFilePath, scriptContent, loadFilesFromMaster, secureGroovyScript
but i don't need any of this.
But if i try
properties {
envInjectJobProperty {
keepBuildVariables(true)
keepJenkinsSystemVariables(true)
info {
secureGroovyScript('')
propertiesContent('KEY=VALUE')
}
}
}
i get
ERROR: (puppet.groovy, line 78) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.groovyScriptContent() is applicable for argument types: () values: []
so no idea what is wrong.
Using Jenkins 2.19.4 newest Job DSL Plugin and envinject 2.0
Via gui it is no problem to add only propertiesContent
Any ideas?
Thank in advanced
Mark