Jenkins Vue 项目构建错误

[2/4] Fetching packages...
error Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads git://github.com/adobe-webplatform/eve.git
Directory: /var/lib/jenkins/workspace/Stonex/Stonex-Mdm-Ui
Output:
fatal: unable to connect to github.com:
github.com[0: 140.82.114.4]: errno=Connection timed out

一看协议居然是git://xxx 貌似github早就不用这种格式了, 而是使用的[email protected]:xxx 这种或者https协议,解决方法:

执行下下面的命令:

git config --global url."https://github.com/".insteadOf git://github.com/

如果使用的是 pipline 添加一个配置上去。

这个问题在 npm 安装的时候老出现。

属于老生常谈的事情。

很多时候都需要上面进行配置,也挺烦。