hudson.plugins.git.GitException: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed

Jenkins JIRA | Wolfgang Steiner | 1 year ago
  1. 0

    I'm trying to clone a git repository that is hosted on a Atlassian Stash instance. The special case about the repository is that it has several submodules in it. Here is what I did to get to the error: 1) I installed the latest git-plugin (2.4.0) / git-client-plugin (1.19.0) in Jenkins 2) setup a ssh rsa key in Stash 3) configured a Jenkins job to clone the repository from the Stash remote host (via ssh://) 4) configured the ssh key & credentials in the Jenkins job git-plugin settings now when I run the build, Jenkins sucessfully clones the top-level git repository, but fails when trying to update the submodules (the error looks like Jenkins is trying to read username & password from a CLI, but only for the submodules) {code:java} Gestartet durch Benutzer anonymous Baue in Arbeitsbereich C:\Program Files (x86)\Jenkins\jobs\test node\workspace No JDK named 'null' found No JDK named 'null' found > git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git.exe config remote.origin.url ssh://git@jenkinshost:7999/ipp/ipp-project.git # timeout=10 Fetching upstream changes from ssh://git@jenkinshost:7999/ipp/ipp-project.git > git.exe --version # timeout=10 using GIT_SSH to set credentials > git.exe -c core.askpass=true fetch --tags --progress ssh://git@jenkinshost:7999/ipp/ipp-project.git +refs/heads/*:refs/remotes/origin/* > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10 Checking out Revision a27c48024088c36e6eff3420c699ea1d1977e5cd (refs/remotes/origin/master) No JDK named 'null' found > git.exe config core.sparsecheckout # timeout=10 > git.exe checkout -f a27c48024088c36e6eff3420c699ea1d1977e5cd > git.exe rev-list a27c48024088c36e6eff3420c699ea1d1977e5cd # timeout=10 > git.exe remote # timeout=10 > git.exe submodule init # timeout=10 > git.exe submodule sync # timeout=10 > git.exe config --get remote.origin.url # timeout=10 > git.exe submodule update FATAL: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed hudson.plugins.git.GitException: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:904) at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:83) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1074) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) 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:410) Finished: FAILURE {code}

    Jenkins JIRA | 1 year ago | Wolfgang Steiner
    hudson.plugins.git.GitException: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed
  2. 0

    I'm trying to clone a git repository that is hosted on a Atlassian Stash instance. The special case about the repository is that it has several submodules in it. Here is what I did to get to the error: 1) I installed the latest git-plugin (2.4.0) / git-client-plugin (1.19.0) in Jenkins 2) setup a ssh rsa key in Stash 3) configured a Jenkins job to clone the repository from the Stash remote host (via ssh://) 4) configured the ssh key & credentials in the Jenkins job git-plugin settings now when I run the build, Jenkins sucessfully clones the top-level git repository, but fails when trying to update the submodules (the error looks like Jenkins is trying to read username & password from a CLI, but only for the submodules) {code:java} Gestartet durch Benutzer anonymous Baue in Arbeitsbereich C:\Program Files (x86)\Jenkins\jobs\test node\workspace No JDK named 'null' found No JDK named 'null' found > git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git.exe config remote.origin.url ssh://git@jenkinshost:7999/ipp/ipp-project.git # timeout=10 Fetching upstream changes from ssh://git@jenkinshost:7999/ipp/ipp-project.git > git.exe --version # timeout=10 using GIT_SSH to set credentials > git.exe -c core.askpass=true fetch --tags --progress ssh://git@jenkinshost:7999/ipp/ipp-project.git +refs/heads/*:refs/remotes/origin/* > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10 Checking out Revision a27c48024088c36e6eff3420c699ea1d1977e5cd (refs/remotes/origin/master) No JDK named 'null' found > git.exe config core.sparsecheckout # timeout=10 > git.exe checkout -f a27c48024088c36e6eff3420c699ea1d1977e5cd > git.exe rev-list a27c48024088c36e6eff3420c699ea1d1977e5cd # timeout=10 > git.exe remote # timeout=10 > git.exe submodule init # timeout=10 > git.exe submodule sync # timeout=10 > git.exe config --get remote.origin.url # timeout=10 > git.exe submodule update FATAL: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed hudson.plugins.git.GitException: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:62) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:904) at hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:83) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1074) at hudson.scm.SCM.checkout(SCM.java:485) at hudson.model.AbstractProject.checkout(AbstractProject.java:1275) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532) 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:410) Finished: FAILURE {code}

    Jenkins JIRA | 1 year ago | Wolfgang Steiner
    hudson.plugins.git.GitException: Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed
  3. 0

    git plugin in Jenkins on Windows does not use credentials with submodule

    Stack Overflow | 2 years ago
    hudson.plugins.git.GitException: Command "C:\CI\Git\bin\git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'include/portal_air'... Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Clone of 'git@bitbucket.org:mycomp/portal_air.git' into submodule path 'include/portal_air' failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Loading private repository submodules in Jenkins Project

    Stack Overflow | 2 years ago | Erik
    hudson.plugins.git.GitException: Command "git submodule update --init --recursive" returned status code 1: stdout: stderr: Cloning into 'submodule/FolderName'... remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/Owner/SubModuleProject.git/' Clone of 'https://github.com/Owner/SubModuleProject.git' into submodule path 'submodule/FolderName' failed
  6. 0

    [JIRA] [git-client-plugin] (JENKINS-20941) Stored git credentials not used when submodule is updated

    Google Groups | 1 year ago | jared....@gmail.com (JIRA)
    hudson.plugins.git.GitException: Command "git submodule update" returned status code 1: stdout: Cloning into 'subdepot'... stderr: fatal: Authentication failed Clone of 'http://****/stash/scm/test/subrepo.git' into submodule path 'subrepo' failed

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.plugins.git.GitException

      Command "git.exe submodule update" returned status code 1: stdout: stderr: Cloning into 'apps/ipp-app'... error: cannot spawn echo : No such file or directory bash: /dev/tty: No such device or address error: failed to execute prompt script (exit code 1) fatal: could not read Username for 'http://jenkinshost:7990': No error Clone of 'http://jenkinshost:7990/scm/ipp/ipp-app.git' into submodule path 'apps/ipp-app' failed

      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn()
    2. org.jenkinsci.plugins
      CliGitAPIImpl$6.execute
      1. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1640)
      2. org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:62)
      3. org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:904)
      3 frames
    3. hudson.plugins.git
      SubmoduleOption.onCheckoutCompleted
      1. hudson.plugins.git.extensions.impl.SubmoduleOption.onCheckoutCompleted(SubmoduleOption.java:83)
      1 frame
    4. Hudson GIT plugin
      GitSCM.checkout
      1. hudson.plugins.git.GitSCM.checkout(GitSCM.java:1074)
      1 frame
    5. Hudson
      AbstractBuild$AbstractBuildExecution.defaultCheckout
      1. hudson.scm.SCM.checkout(SCM.java:485)
      2. hudson.model.AbstractProject.checkout(AbstractProject.java:1275)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
      3 frames
    6. jenkins.scm
      SCMCheckoutStrategy.checkout
      1. jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
      2. hudson.model.Run.execute(Run.java:1741)
      3. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      4. hudson.model.ResourceController.execute(ResourceController.java:98)
      5. hudson.model.Executor.run(Executor.java:410)
      5 frames