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

NPE after upgrading to 1.6.2

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      1.6.2 introduced the field 'net', but when you upgrade from a prior version this field is null, leading to a NPE

      FATAL: null
      java.lang.NullPointerException
      	at com.cloudbees.jenkins.plugins.docker_build_env.Docker.runDetached(Docker.java:176)
      	at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.startBuildContainer(DockerBuildWrapper.java:200)
      	at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:173)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:154)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      	at hudson.model.Run.execute(Run.java:1738)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:381)
      

      Workaround is to save the job configuration.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/Docker.java
          http://jenkins-ci.org/commit/docker-custom-build-environment-plugin/fd3af57a2845b2fadb1ff9066340cbe89d495045
          Log:
          JENKINS-31220 Fix upgrade from a version prior to 1.6.2

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/Docker.java http://jenkins-ci.org/commit/docker-custom-build-environment-plugin/fd3af57a2845b2fadb1ff9066340cbe89d495045 Log: JENKINS-31220 Fix upgrade from a version prior to 1.6.2

            People

            • Assignee:
              vlatombe Vincent Latombe
              Reporter:
              vlatombe Vincent Latombe
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: