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

Could not pull image: Digest issues in Jenkins with Docker-Build-Step Plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • Docker-Build-Step:2.0
      RHEL: 7.3
      Docker Version: 1.2.6
      Jenkins ver. 2.89.2
      Openshift (3.5) Private registry

      When using the "Pull Image" build step from Jenkins master, the build failsĀ and is unable to validate the digest from the image.

      [Docker] ERROR: failed to pull image example.com/devops/example:test
      ERROR: Build step failed with exception
      com.github.dockerjava.api.exception.DockerClientException: Could not pull image: Digest: sha256:37403fb1d9dc7c85557b04ce70f2465d28ca4964d3787e15306b2ea746434a11
      at com.github.dockerjava.core.command.PullImageResultCallback.awaitSuccess(PullImageResultCallback.java:50)
      at org.jenkinsci.plugins.dockerbuildstep.cmd.remote.PullImageRemoteCallable.call(PullImageRemoteCallable.java:64)
      at org.jenkinsci.plugins.dockerbuildstep.cmd.remote.PullImageRemoteCallable.call(PullImageRemoteCallable.java:26)
      at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
      at org.jenkinsci.plugins.dockerbuildstep.cmd.PullImageCommand.execute(PullImageCommand.java:80)
      Caused: java.lang.IllegalArgumentException
      at org.jenkinsci.plugins.dockerbuildstep.cmd.PullImageCommand.execute(PullImageCommand.java:85)
      at org.jenkinsci.plugins.dockerbuildstep.DockerBuilder.perform(DockerBuilder.java:77)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      at hudson.model.Build$BuildExecution.build(Build.java:206)
      at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      at hudson.model.Run.execute(Run.java:1724)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:421)
      Build step 'Execute Docker command' marked build as failure
      Finished: FAILURE

            vjuranek vjuranek
            ashokhein Ashokkumar Kommiya Subramanian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: