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

Docker: Build step failed with exception net.sf.json.JSONException: null object

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • docker-commons-plugin
    • jenkins-lts v2.361.1
      docker-common v1.21
      CloudBees Docker Build and Publish plugin v1.4.0

      ERROR: Build step failed with exception
      net.sf.json.JSONException: null object
      at net.sf.json.JSONObject.verifyIsNull(JSONObject.java:2688)
      at net.sf.json.JSONObject.element(JSONObject.java:1733)
      at net.sf.json.JSONObject.element(JSONObject.java:1716)
      at net.sf.json.JSONObject.put(JSONObject.java:2328)
      at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken$1.call(DockerRegistryToken.java:154)
      at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken$1.call(DockerRegistryToken.java:129)
      at hudson.remoting.LocalChannel.call(LocalChannel.java:47)
      at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken.newKeyMaterialFactory(DockerRegistryToken.java:129)
      at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:273)
      at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:258)
      at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:250)
      at com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:457)
      at com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:431)
      at com.cloudbees.dockerpublish.DockerBuilder$Perform.buildAndTag(DockerBuilder.java:373)
      at com.cloudbees.dockerpublish.DockerBuilder$Perform.exec(DockerBuilder.java:311)
      at com.cloudbees.dockerpublish.DockerBuilder$Perform.access$100(DockerBuilder.java:291)
      at com.cloudbees.dockerpublish.DockerBuilder.perform(DockerBuilder.java:262)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:816)
      at hudson.model.Build$BuildExecution.build(Build.java:199)
      at hudson.model.Build$BuildExecution.doRun(Build.java:164)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:524)
      at hudson.model.Run.execute(Run.java:1899)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
      at hudson.model.ResourceController.execute(ResourceController.java:107)
      at hudson.model.Executor.run(Executor.java:449)
      Build step 'Docker Build and Publish' marked build as failure
      Finished: FAILURE

          [JENKINS-69702] Docker: Build step failed with exception net.sf.json.JSONException: null object

          Ankit Giri created issue -
          Ankit Giri made changes -
          Environment Original: jenkins-lts v2.361.1
          docker-common v1.21
          New: jenkins-lts v2.361.1
          docker-common v1.21
          CloudBees Docker Build and Publish plugin v1.4.0
          Ankit Giri made changes -
          Summary Original: Build step failed with exception net.sf.json.JSONException: null object New: Docker: Build step failed with exception net.sf.json.JSONException: null object

          Mark Waite added a comment -

          Thanks for reporting the stack trace. That may help others if they encounter the same stack trace. Unfortunately, this issue does not include enough information for anyone else to take action on it. I will plan to close this in a week as "cannot reproduce" if more information is not provided.

          See "How to report an issue" for guidance on the types of information needed for others to be able to act on an issue report.

          Mark Waite added a comment - Thanks for reporting the stack trace. That may help others if they encounter the same stack trace. Unfortunately, this issue does not include enough information for anyone else to take action on it. I will plan to close this in a week as "cannot reproduce" if more information is not provided. See "How to report an issue" for guidance on the types of information needed for others to be able to act on an issue report.
          Mark Waite made changes -
          Labels Original: docker-build-step New: docker-build-step stalled
          Ankit Giri made changes -
          Attachment New: Screenshot 2022-09-28 at 7.13.00 PM.png [ 59149 ]
          Ankit Giri made changes -
          Attachment Original: Screenshot 2022-09-28 at 7.13.00 PM.png [ 59149 ]
          Ankit Giri made changes -
          Attachment New: Screenshot 2022-09-28 at 7.14.12 PM.png [ 59150 ]
          Ankit Giri made changes -
          Attachment New: Screenshot 2022-09-28 at 7.16.07 PM.png [ 59151 ]
          Ankit Giri made changes -
          Attachment New: image-2022-09-28-19-18-05-758.png [ 59152 ]

            Unassigned Unassigned
            ankitgiri45 Ankit Giri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: