Jenkins Pipeline / Job DSL Problem

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Jenkins Pipeline / Job DSL Problem

I currently have a simple Pipeline Script which looks more or less like this (reduced to the important parts)

node {
('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) {
.each { name ->
.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 [hidden email].
To view this discussion on the web visit
For more options, visit