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

Failed to lookup the docker build ImageID

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Plugin version: 1.7.3
      CloudBees Jenkins Platform - Master 2.107.3.4

      When running image.run() from:

       

      docker.withRegistry(GlobalVariables.DOCKER_PROD_URL, jenkinsSrvAccount) {
          writeFile file: 'Dockerfile', text: "Dockerfile"
          sh "docker build --build-arg http_proxy=${GlobalVariables.FMR_PROXY} -     buildarg https_proxy=${GlobalVariables.FMR_PROXY} -t ${pythonImage} ."
          def image = docker.image("${helmCiImageName}");
          image.run('-u 0:0')
          image.inside('-v $HOME:/root:rw') {
          }
       }

       

      The following error occurs:

       

       
      #8 exporting to image#8 exporting to image#8 sha256:e8c613e07b0b7ff33893b694f7759a10d42e180f2b4dc349fb57dc6b71dcab00#8 exporting layers done#8 writing image sha256:234bdfa12f519554df3a5e364ebf03ff0686f73a876d416ce07cbe024f03b792 done#8 DONE 0.0sFATAL: Failed to lookup the docker build ImageID.java.lang.RuntimeException: Failed to lookup the docker build ImageID. at com.cloudbees.jenkins.plugins.docker_build_env.Docker.buildImage(Docker.java:141) at com.cloudbees.jenkins.plugins.docker_build_env.DockerfileImageSelector.prepareDockerImage(DockerfileImageSelector.java:46) at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:179) at hudson.model.Build$BuildExecution.doRun(Build.java:157) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1727) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)[BFA] Scanning build for known causes...[BFA] No failure causes found[BFA] Done. 0sFinished: FAILURE
       
      

       

      Performing docker commands using plain docker sh commands works.

       

       

            clanger Christoph
            aalvarezcb Alejandro
            Votes:
            8 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: