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

JSONException: null object when interacting with Docker Hub Registry

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Labels:
    • Environment:
      Jenkins docker image running version. 1.609.1
      Running Java version OpenJDK Runtime Environment 1.8.0_45-internal-b14
      Running plugins:
      Docker Commons Plugin v1.1
      Docker Build and Publish plugin v1.0
    • Similar Issues:

      Description

      I am trying to build and publish a Docker image using the "docker-build-publish-plugin" module and getting the stack trace error below. I am using the Jenkins credential module to store the Docker Hub credentials.

      I am have configured the Docker build step with the default setting of the Docker Hub registry: https://index.docker.io/v1/

      Started by an SCM change
      Building in workspace /var/jenkins_home/workspace/WeatherMicroservice
      [AWS CodePipeline Plugin] Job '91a8fc23-8ee8-4e60-80a3-fa5a68782820' received
      [AWS CodePipeline Plugin] Clearing Workspace '/var/jenkins_home/workspace/WeatherMicroservice' before download
      [AWS CodePipeline Plugin] Detected compression type: Zip
      [AWS CodePipeline Plugin] Successfully downloaded the artifacts from CodePipelines
      [AWS CodePipeline Plugin] File downloaded successfully
      [AWS CodePipeline Plugin] Extracting '/var/jenkins_home/workspace/WeatherMicroservice/dCSbFDZ.zip' to '/var/jenkins_home/workspace/WeatherMicroservice'
      [AWS CodePipeline Plugin] File uncompressed successfully
      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:100)
      	at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken$1.call(DockerRegistryToken.java:71)
      	at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      	at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken.newKeyMaterialFactory(DockerRegistryToken.java:71)
      	at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:204)
      	at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:193)
      	at com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:381)
      	at com.cloudbees.dockerpublish.DockerBuilder$Perform.executeCmd(DockerBuilder.java:359)
      	at com.cloudbees.dockerpublish.DockerBuilder$Perform.buildAndTag(DockerBuilder.java:305)
      	at com.cloudbees.dockerpublish.DockerBuilder$Perform.exec(DockerBuilder.java:252)
      	at com.cloudbees.dockerpublish.DockerBuilder$Perform.access$100(DockerBuilder.java:233)
      	at com.cloudbees.dockerpublish.DockerBuilder.perform(DockerBuilder.java:208)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:761)
      	at hudson.model.Build$BuildExecution.build(Build.java:203)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      	at hudson.model.Run.execute(Run.java:1741)
      	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 'Docker Build and Publish' marked build as failure
      [AWS CodePipeline Plugin] Publishing artifacts
      [AWS CodePipeline Plugin] Build Failed. PutJobFailureResult
      Build step 'AWS CodePipeline Publisher' marked build as failure
      Finished: FAILURE
      

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          The fix has been released in docker-commons-1.2

          Show
          oleg_nenashev Oleg Nenashev added a comment - The fix has been released in docker-commons-1.2
          Show
          oleg_nenashev Oleg Nenashev added a comment - It has been caused by https://github.com/jenkinsci/docker-commons-plugin/commit/97815b0654d91646602b608e4c0b05d3947d434b . https://github.com/jenkinsci/docker-commons-plugin/pull/45 addresses the issue
          Hide
          csanchez Carlos Sanchez added a comment -
          Show
          csanchez Carlos Sanchez added a comment - Seems it is this issue https://github.com/jenkinsci/docker-commons-plugin/pull/45
          Hide
          gibberinghorror Marat Garafutdinov added a comment -

          FYI, downgrading to docker-commons 1.0 seems to fix the problem for me.

          Show
          gibberinghorror Marat Garafutdinov added a comment - FYI, downgrading to docker-commons 1.0 seems to fix the problem for me.
          Hide
          gibberinghorror Marat Garafutdinov added a comment -

          Saw the same thing with docker-build-publish. Tried switching to suing docker-workflow instead:

          Groovy:

          ...
              stage 'Building  image'
              def img = docker.build("company/app:${env.BUILD_NUMBER}", "folder/buildfolder")
              stage 'Pushing  image'
              docker.withRegistry('https://quay.io/v1', 'cred-id') {
                img.push()
                img.push 'latest'
              }
          

          result:

          ...
          Successfully built bcaebc8c62df
          Running: Record trace of a Docker image used in FROM
          Running: Pushing image
          Entering stage Pushing image
          Proceeding
          Running: Set environment variables : Start
          Running: Set environment variables : Body : Start
          Running: Sets up Docker registry endpoint : Start
          Running: Sets up Docker registry endpoint : End
          Running: Set environment variables : Body : End
          Running: Set environment variables : End
          Running: Sets up Docker server endpoint : Body : End
          Running: Sets up Docker server endpoint : End
          Running: Allocate node : Body : End
          Running: Allocate node : End
          Running: End of Workflow
          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:100)
          	at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken$1.call(DockerRegistryToken.java:71)
          	at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
          	at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken.newKeyMaterialFactory(DockerRegistryToken.java:71)
          	at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:204)
          	at org.jenkinsci.plugins.docker.workflow.RegistryEndpointStep$Execution.newKeyMaterialFactory(RegistryEndpointStep.java:61)
          	at org.jenkinsci.plugins.docker.workflow.AbstractEndpointStepExecution.start(AbstractEndpointStepExecution.java:44)
          	at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:136)
          	at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:98)
          	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45)
          	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
          	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
          	at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:15)
          	at org.jenkinsci.plugins.docker.workflow.Docker.withRegistry(jar:file:/var/jenkins_home/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:37)
          	at Unknown.Unknown(Unknown)
          	at ___cps.transform___(Native Method)
          	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:69)
          	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:106)
          	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:79)
          	at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(Method.java:606)
          	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
          	at com.cloudbees.groovy.cps.impl.ClosureBlock.eval(ClosureBlock.java:25)
          	at com.cloudbees.groovy.cps.Next.step(Next.java:58)
          	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:145)
          	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164)
          	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:271)
          	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:71)
          	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:180)
          	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:178)
          	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112)
          	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
          	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
          	at java.lang.Thread.run(Thread.java:745)
          Finished: FAILURE
          

          Jenkins v 1.609.1 and plugins:

          <plugins>
            <shortName>workflow-cps</shortName>
            <version>1.8</version>
            <shortName>junit</shortName>
            <version>1.7</version>
            <shortName>docker-custom-build-environment</shortName>
            <version>1.4</version>
            <shortName>workflow-cps-global-lib</shortName>
            <version>1.8</version>
            <shortName>mapdb-api</shortName>
            <version>1.0.6.0</version>
            <shortName>subversion</shortName>
            <version>2.5.1</version>
            <shortName>vsphere-cloud</shortName>
            <version>2.6</version>
            <shortName>docker-workflow</shortName>
            <version>1.0</version>
            <shortName>matrix-auth</shortName>
            <version>1.2</version>
            <shortName>workflow-scm-step</shortName>
            <version>1.8</version>
            <shortName>maven-plugin</shortName>
            <version>2.10</version>
            <shortName>ldap</shortName>
            <version>1.11</version>
            <shortName>workflow-durable-task-step</shortName>
            <version>1.8</version>
            <shortName>git-server</shortName>
            <version>1.6</version>
            <shortName>external-monitor-job</shortName>
            <version>1.4</version>
            <shortName>credentials</shortName>
            <version>1.22</version>
            <shortName>workflow-support</shortName>
            <version>1.8</version>
            <shortName>ssh-slaves</shortName>
            <version>1.9</version>
            <shortName>workflow-basic-steps</shortName>
            <version>1.8</version>
            <shortName>script-security</shortName>
            <version>1.14</version>
            <shortName>postbuildscript</shortName>
            <version>0.17</version>
            <shortName>workflow-job</shortName>
            <version>1.8</version>
            <shortName>mailer</shortName>
            <version>1.15</version>
            <shortName>javadoc</shortName>
            <version>1.3</version>
            <shortName>antisamy-markup-formatter</shortName>
            <version>1.3</version>
            <shortName>matrix-project</shortName>
            <version>1.6</version>
            <shortName>pam-auth</shortName>
            <version>1.2</version>
            <shortName>ant</shortName>
            <version>1.2</version>
            <shortName>workflow-step-api</shortName>
            <version>1.8</version>
            <shortName>ssh-credentials</shortName>
            <version>1.11</version>
            <shortName>cvs</shortName>
            <version>2.12</version>
            <shortName>workflow-aggregator</shortName>
            <version>1.8</version>
            <shortName>workflow-api</shortName>
            <version>1.8</version>
            <shortName>translation</shortName>
            <version>1.12</version>
            <shortName>windows-slaves</shortName>
            <version>1.1</version>
            <shortName>promoted-builds</shortName>
            <version>2.21</version>
            <shortName>parameterized-trigger</shortName>
            <version>2.27</version>
            <shortName>multiple-scms</shortName>
            <version>0.5</version>
            <shortName>github-oauth</shortName>
            <version>0.22.2</version>
            <shortName>gerrit-trigger</shortName>
            <version>2.14.0</version>
            <shortName>plain-credentials</shortName>
            <version>1.1</version>
            <shortName>rabbitmq-consumer</shortName>
            <version>2.7</version>
            <shortName>github</shortName>
            <version>1.12.0</version>
            <shortName>scm-api</shortName>
            <version>0.2</version>
            <shortName>config-file-provider</shortName>
            <version>2.8.1</version>
            <shortName>job-dsl</shortName>
            <version>1.35</version>
            <shortName>token-macro</shortName>
            <version>1.10</version>
            <shortName>hipchat</shortName>
            <version>0.1.9</version>
            <shortName>github-api</shortName>
            <version>1.69</version>
            <shortName>greenballs</shortName>
            <version>1.14</version>
            <shortName>ws-cleanup</shortName>
            <version>0.26</version>
            <shortName>durable-task</shortName>
            <version>1.5</version>
            <shortName>buildgraph-view</shortName>
            <version>1.1.1</version>
            <shortName>ghprb</shortName>
            <version>1.26.2</version>
            <shortName>ssh-agent</shortName>
            <version>1.7</version>
            <shortName>docker-commons</shortName>
            <version>1.1</version>
            <shortName>authentication-tokens</shortName>
            <version>1.1</version>
            <shortName>git-client</shortName>
            <version>1.18.0</version>
            <shortName>nant</shortName>
            <version>1.4.3</version>
            <shortName>ivy</shortName>
            <version>1.24</version>
            <shortName>git</shortName>
            <version>2.4.0</version>
            <shortName>cloudbees-folder</shortName>
            <version>4.9</version>
            <shortName>rebuild</shortName>
            <version>1.25</version>
            <shortName>build-flow-plugin</shortName>
            <version>0.18</version>
          </plugins>
          
          Show
          gibberinghorror Marat Garafutdinov added a comment - Saw the same thing with docker-build-publish. Tried switching to suing docker-workflow instead: Groovy: ... stage 'Building image' def img = docker.build( "company/app:${env.BUILD_NUMBER}" , "folder/buildfolder" ) stage 'Pushing image' docker.withRegistry( 'https: //quay.io/v1' , 'cred-id' ) { img.push() img.push 'latest' } result: ... Successfully built bcaebc8c62df Running: Record trace of a Docker image used in FROM Running: Pushing image Entering stage Pushing image Proceeding Running: Set environment variables : Start Running: Set environment variables : Body : Start Running: Sets up Docker registry endpoint : Start Running: Sets up Docker registry endpoint : End Running: Set environment variables : Body : End Running: Set environment variables : End Running: Sets up Docker server endpoint : Body : End Running: Sets up Docker server endpoint : End Running: Allocate node : Body : End Running: Allocate node : End Running: End of Workflow 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:100) at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken$1.call(DockerRegistryToken.java:71) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryToken.newKeyMaterialFactory(DockerRegistryToken.java:71) at org.jenkinsci.plugins.docker.commons.credentials.DockerRegistryEndpoint.newKeyMaterialFactory(DockerRegistryEndpoint.java:204) at org.jenkinsci.plugins.docker.workflow.RegistryEndpointStep$Execution.newKeyMaterialFactory(RegistryEndpointStep.java:61) at org.jenkinsci.plugins.docker.workflow.AbstractEndpointStepExecution.start(AbstractEndpointStepExecution.java:44) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:136) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:98) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:15) at org.jenkinsci.plugins.docker.workflow.Docker.withRegistry(jar:file:/ var /jenkins_home/plugins/docker-workflow/WEB-INF/lib/docker-workflow.jar!/org/jenkinsci/plugins/docker/workflow/Docker.groovy:37) at Unknown.Unknown(Unknown) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:69) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:106) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:79) at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.ClosureBlock.eval(ClosureBlock.java:25) at com.cloudbees.groovy.cps.Next.step(Next.java:58) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:145) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:271) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:71) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:180) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:178) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:112) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang. Thread .run( Thread .java:745) Finished: FAILURE Jenkins v 1.609.1 and plugins: <plugins> <shortName>workflow-cps</shortName> <version>1.8</version> <shortName>junit</shortName> <version>1.7</version> <shortName>docker-custom-build-environment</shortName> <version>1.4</version> <shortName>workflow-cps-global-lib</shortName> <version>1.8</version> <shortName>mapdb-api</shortName> <version>1.0.6.0</version> <shortName>subversion</shortName> <version>2.5.1</version> <shortName>vsphere-cloud</shortName> <version>2.6</version> <shortName>docker-workflow</shortName> <version>1.0</version> <shortName>matrix-auth</shortName> <version>1.2</version> <shortName>workflow-scm-step</shortName> <version>1.8</version> <shortName>maven-plugin</shortName> <version>2.10</version> <shortName>ldap</shortName> <version>1.11</version> <shortName>workflow-durable-task-step</shortName> <version>1.8</version> <shortName>git-server</shortName> <version>1.6</version> <shortName>external-monitor-job</shortName> <version>1.4</version> <shortName>credentials</shortName> <version>1.22</version> <shortName>workflow-support</shortName> <version>1.8</version> <shortName>ssh-slaves</shortName> <version>1.9</version> <shortName>workflow-basic-steps</shortName> <version>1.8</version> <shortName>script-security</shortName> <version>1.14</version> <shortName>postbuildscript</shortName> <version>0.17</version> <shortName>workflow-job</shortName> <version>1.8</version> <shortName>mailer</shortName> <version>1.15</version> <shortName>javadoc</shortName> <version>1.3</version> <shortName>antisamy-markup-formatter</shortName> <version>1.3</version> <shortName>matrix-project</shortName> <version>1.6</version> <shortName>pam-auth</shortName> <version>1.2</version> <shortName>ant</shortName> <version>1.2</version> <shortName>workflow-step-api</shortName> <version>1.8</version> <shortName>ssh-credentials</shortName> <version>1.11</version> <shortName>cvs</shortName> <version>2.12</version> <shortName>workflow-aggregator</shortName> <version>1.8</version> <shortName>workflow-api</shortName> <version>1.8</version> <shortName>translation</shortName> <version>1.12</version> <shortName>windows-slaves</shortName> <version>1.1</version> <shortName>promoted-builds</shortName> <version>2.21</version> <shortName>parameterized-trigger</shortName> <version>2.27</version> <shortName>multiple-scms</shortName> <version>0.5</version> <shortName>github-oauth</shortName> <version>0.22.2</version> <shortName>gerrit-trigger</shortName> <version>2.14.0</version> <shortName>plain-credentials</shortName> <version>1.1</version> <shortName>rabbitmq-consumer</shortName> <version>2.7</version> <shortName>github</shortName> <version>1.12.0</version> <shortName>scm-api</shortName> <version>0.2</version> <shortName>config-file-provider</shortName> <version>2.8.1</version> <shortName>job-dsl</shortName> <version>1.35</version> <shortName>token-macro</shortName> <version>1.10</version> <shortName>hipchat</shortName> <version>0.1.9</version> <shortName>github-api</shortName> <version>1.69</version> <shortName>greenballs</shortName> <version>1.14</version> <shortName>ws-cleanup</shortName> <version>0.26</version> <shortName>durable-task</shortName> <version>1.5</version> <shortName>buildgraph-view</shortName> <version>1.1.1</version> <shortName>ghprb</shortName> <version>1.26.2</version> <shortName>ssh-agent</shortName> <version>1.7</version> <shortName>docker-commons</shortName> <version>1.1</version> <shortName>authentication-tokens</shortName> <version>1.1</version> <shortName>git-client</shortName> <version>1.18.0</version> <shortName>nant</shortName> <version>1.4.3</version> <shortName>ivy</shortName> <version>1.24</version> <shortName>git</shortName> <version>2.4.0</version> <shortName>cloudbees-folder</shortName> <version>4.9</version> <shortName>rebuild</shortName> <version>1.25</version> <shortName>build-flow-plugin</shortName> <version>0.18</version> </plugins>
          Hide
          mattmcclean Matt McClean added a comment -

          Credentials screen shot

          Show
          mattmcclean Matt McClean added a comment - Credentials screen shot
          Hide
          mattmcclean Matt McClean added a comment - - edited

          I have filled in the username and password in the Registry Credentials but no email. The form doesn't give the option to enter an Email. Attached is the Credentials dialog box and I have selected the option Username with Password as there doesn't appear to be a Docker Hub option like the screen shot on the plugin page.

          I am running with Jenkins v 1.609.1 and plugins:

          docker-build-publish:1.0
          docker-commons:1.1
          authentication-tokens:1.1
          credentials:1.22

          Show
          mattmcclean Matt McClean added a comment - - edited I have filled in the username and password in the Registry Credentials but no email. The form doesn't give the option to enter an Email. Attached is the Credentials dialog box and I have selected the option Username with Password as there doesn't appear to be a Docker Hub option like the screen shot on the plugin page. I am running with Jenkins v 1.609.1 and plugins: docker-build-publish:1.0 docker-commons:1.1 authentication-tokens:1.1 credentials:1.22
          Show
          csanchez Carlos Sanchez added a comment - is your credentials email or password empty ? https://github.com/jenkinsci/docker-commons-plugin/blob/master/src/main/java/org/jenkinsci/plugins/docker/commons/credentials/DockerRegistryToken.java#L100

            People

            • Assignee:
              csanchez Carlos Sanchez
              Reporter:
              mattmcclean Matt McClean
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: