Unable to create pipeline job from a template with "using" keyword

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I have the following dsl:

      pipelineJob("hello-pipeline") {

           using("/templates/hello") // where hello is a pipeline job
      }

      Got this exception:

      java.lang.NullPointerExceptionat javaposse.jobdsl.plugin.ExecuteDslScripts.updateTemplates(ExecuteDslScripts.java:380)at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:322)

      Looking at the source, this line seems to be the culprit:

      AbstractProject templateProject = getLookupStrategy().getItem(seedJob, templateName, AbstractProject.class);

        

            Assignee:
            Daniel Spilker
            Reporter:
            Cuong Tran
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: