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

java.io.IOException: Cannot run program "git" (in directory "/home/jenkins/workspace/pipeline"): error=2, No such file or directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • docker-plugin
    • None
    • CoreOS
      Docker Image :evarga/jenkins-slave

      A Docker Pipeline with Cloud>Docker is not able to run a Jenkins pipeline in the Docker container provisioned on a different CoreOS instance. Docker container gets provisioned but build generates the following error.

      {{ERROR: Error cloning remote repo 'origin'
      hudson.plugins.git.GitException: Could not init /home/jenkins/workspace/docker-plugin-pipeline

      Caused by: java.io.IOException: Cannot run program "git" (in directory "/home/jenkins/workspace/docker-plugin-pipeline"): error=2, No such file or directory}}

      Configuring a different PATH for git /usr/bin/git in Configure System does not fix the issue.

            Unassigned Unassigned
            dvohra Deepak Vohra
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: