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

Can't use the default command from an image

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I want to use the command specified in the image when starting a container. When I set the "Container start command" option to empty, I get the following exception.

      Error response from daemon: Cannot start container 27ad97097540be6015b21554d0bddc280d28f4a601b8212ae2dd561fd0c6fcbb: [8] System error: exec: "": executable file not found in $PATH
      FATAL: Failed to run docker image
      java.lang.RuntimeException: Failed to run docker image
      	at com.cloudbees.jenkins.plugins.docker_build_env.Docker.runDetached(Docker.java:193)
      	at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.startBuildContainer(DockerBuildWrapper.java:183)
      	at com.cloudbees.jenkins.plugins.docker_build_env.DockerBuildWrapper.setUp(DockerBuildWrapper.java:158)
      	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)
      

      See CMD and CMD (default command or options) for details.

        Attachments

          Activity

          Show
          daspilker Daniel Spilker added a comment - https://github.com/jenkinsci/docker-custom-build-environment-plugin/pull/33
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Daniel Spilker
          Path:
          src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/DockerBuildWrapper.java
          http://jenkins-ci.org/commit/docker-custom-build-environment-plugin/03a153e94915945a80da295965e4f06ca2806c9e
          Log:
          do not append command if not set

          [FIXES JENKINS-30692]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Spilker Path: src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/DockerBuildWrapper.java http://jenkins-ci.org/commit/docker-custom-build-environment-plugin/03a153e94915945a80da295965e4f06ca2806c9e Log: do not append command if not set [FIXES JENKINS-30692]
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Nicolas De loof
          Path:
          src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/DockerBuildWrapper.java
          http://jenkins-ci.org/commit/docker-custom-build-environment-plugin/c3c2b667fcace7f3a0902432dac4b151296d9123
          Log:
          Merge pull request #33 from daspilker/JENKINS-30692

          JENKINS-30692 do not append command if not set

          Compare: https://github.com/jenkinsci/docker-custom-build-environment-plugin/compare/102768ae51f3...c3c2b667fcac

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De loof Path: src/main/java/com/cloudbees/jenkins/plugins/docker_build_env/DockerBuildWrapper.java http://jenkins-ci.org/commit/docker-custom-build-environment-plugin/c3c2b667fcace7f3a0902432dac4b151296d9123 Log: Merge pull request #33 from daspilker/ JENKINS-30692 JENKINS-30692 do not append command if not set Compare: https://github.com/jenkinsci/docker-custom-build-environment-plugin/compare/102768ae51f3...c3c2b667fcac

            People

            • Assignee:
              ndeloof Nicolas De Loof
              Reporter:
              daspilker Daniel Spilker
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: