从Jenkins git配置运行Bower

时间:2015-05-03 19:51:12

标签: linux git jenkins bower

我正试图通过Jenkins运行bower install并且我收到以下错误:

[INFO] bower bootstrap-popover-extra-placements#*  not-cached git://github.com/tarlepp/bootstrap-popover-extra-placements.git#*
[INFO] bower bootstrap-popover-extra-placements#*     resolve git://github.com/tarlepp/bootstrap-popover-extra-placements.git#*
[INFO] bower moment#~2.10.2                        not-cached git://github.com/moment/moment.git#~2.10.2
[INFO] bower moment#~2.10.2                           resolve git://github.com/moment/moment.git#~2.10.2
[ERROR] bower angular-route#~1.3.15                    ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular-route.git", exit code of #128 fatal: unable to connect to github.com: github.com[0: 192.30.252.130]: errno=Connection timed out
[ERROR] 
[ERROR] Additional error details:
[ERROR] fatal: unable to connect to github.com:
[ERROR] github.com[0: 192.30.252.130]: errno=Connection timed out

我已使用githttp://配置为使用git://而不是git config --global url."https://".insteadOf git://,并且bower install通常可以从命令行运行(并使用http://协议)但不是来自Jenkins,而是坚持使用git://

我也在防火墙上打开了端口9418/tcp -

public (default, active)
  interfaces: ens32
  sources:
  services: dhcpv6-client http ssh
  ports: 9418/tcp 9000/tcp 8080/tcp
  masquerade: no
  forward-ports:
  icmp-blocks:
  rich rules:

仍然詹金斯坚持使用git://超时。任何解决方案?

0 个答案:

没有答案