Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-45812

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

    Details

    • Similar Issues:

      Description

      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);

        

        Attachments

          Activity

          ctran Cuong Tran created issue -
          ctran Cuong Tran made changes -
          Field Original Value New Value
          Issue Type Improvement [ 4 ] Bug [ 1 ]
          scm_issue_link SCM/JIRA link daemon made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          daspilker Daniel Spilker made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              daspilker Daniel Spilker
              Reporter:
              ctran Cuong Tran
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: