Hi,
I currently have a simple Pipeline Script which looks more or less like
this (reduced to the important parts)
node {
stage ('First') {
// Creating a list of names names = [ "a", "b", "c" ]
Job.create(this, names)
}
}
Furthermore I have create a global pipeline lib which contains the class
Job like this:
class Job {
static final void create (def context, def names) {
names.each { name ->
context.jobDsl scriptText: "job('" + name + "')"
}
}
}
Unfortunately this fails all the time that the script needed to be approved
by the administrator. Based on the documentation I had expected that I can
simply run that...cause the global lib in Jenkins will be trusted by
default...
Or do I need to go another path to create jobs from a Pipeline script ?
Kind regards
Karl Heinz Marbaise
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/b9dfae3c-0abb-4a10-931d-77d51943bd5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.