在 jenkins (Linux) 中,git submodule init 会出现这样的错误,但它可以在 Git Extensions (windows) 中工作。
using GIT_ASKPASS to set credentials
> git submodule update --init --recursive --remote xmbank # timeout=10
hudson.plugins.git.GitException: Command "git submodule update --init --recursive --remote xmbank" returned status code 1:
stdout: Cloning into 'xmbank'...
stderr: error: RPC failed; result=22, HTTP code = 404
fatal: The remote end hung up unexpectedly
Clone of 'http://161.63.240.154/app/F-DIG/apps/xmbank' into submodule path 'xmbank' failed
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2436)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2050)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$7.lambda$execute$0(CliGitAPIImpl.java:1459)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at …Run Code Online (Sandbox Code Playgroud) git ×1