-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Minor
-
Component/s: job-dsl-plugin
-
Environment:CloudBees Jenkins Enterprise 2.46.3.2-rolling
Latest job-dsl version (1.64)
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);
 Â