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

NPE When adding docker template in build step

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • docker-plugin
    • Jenkins v1.617, Docker Plugin v0.9.3, Oracle Java 1.7.0_45-b18, Ubuntu 12.04.5 LTS

      Using the build step "Add a new template to all docker clouds" causes a NPE when running a build. I think it has something to do with the fact that you cannot select the "Availability" when configuring the template to add.

      The Exception I see in the console output of the job:

      java.lang.NullPointerException
      at shaded.com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210) at shaded.com.google.common.base.Splitter.splitToList(Splitter.java:416) at com.nirima.jenkins.plugins.docker.DockerTemplateBase.splitAndFilterEmpty(DockerTemplateBase.java:133) at com.nirima.jenkins.plugins.docker.DockerTemplateBase.<init>(DockerTemplateBase.java:113) at com.nirima.jenkins.plugins.docker.DockerTemplate.<init>(DockerTemplate.java:144) at com.nirima.jenkins.plugins.docker.builder.DockerBuilderNewTemplate.perform(DockerBuilderNewTemplate.java:151) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1744) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:374) Build step 'Add a new template to all docker clouds' marked build as failure
      

      See the step configuration in the attachment.

            integer Kanstantsin Shautsou
            thobens Andreas Doebeli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: