zhangshumeng 步骤都是根据文档步骤 1.创建凭证 2.修改jenkinfile 3.创建流水线 然后日志上报这个错 ERROR: Error cloning remote repo ‘origin’ hudson.plugins.git.GitException: Command “git fetch –tags –progress https://github.com/zhangshumeng/devops-java-sample.git +refs/heads/master:refs/remotes/origin/master –depth=1” returned status code 128: stdout: stderr: fatal: unable to access ‘https://github.com/zhangshumeng/devops-java-sample.git/’: Empty reply from server
Rick GitHub 在国内是不是会出现网络问题,建议多试几次。另外,我根据错误信息搜索,也有人遇到类似问题。总之,从现象上来看,应该是网络问题导致的。 如果多次尝试都不行的话,可以试试把用国内的代码托管平台。