无法生成格里特同时通过代理访问远程仓库

问题描述 投票:1回答:1

我尝试在Ubuntu上建立与巴泽尔(0.13.0rc2和0.20)格里特。我公司使用需要身份验证的代理。环境变量http_proxy和https_proxy设定(和其他工具,如wget的,行家,......工作),但巴泽尔报告“HTTP / 1.0 407代理服务器身份验证”的错误:

$ bazel build gerrit
WARNING: ignoring http_proxy in environment.
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '@io_bazel_rules_closure//closure': Error downloading [https://github.com/bazelbuild/rules_closure/archive/08039ba8ca59f64248bb3b6ae016460fe9c9914f.tar.gz] to /home/xxxxxx/.cache/bazel/_bazel_xxxxxx/5fb8c741228852f6bc57df1fc04917a8/external/io_bazel_rules_closure/08039ba8ca59f64248bb3b6ae016460fe9c9914f.tar.gz: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"

任何建议,欢迎!

gerrit bazel
1个回答
0
投票

如果其他人有类似的问题:

搜索了一会儿和e后。 G。试图指定的环境变量HTTP_PROXY和HTTPS_PROXY(见bazel issue #587)我发现this discussion和使用gerritforge /詹金斯从站 - 巴泽勒建设(也配置为码头工人代表):

# use docker the docker container gerritforge/jenkins-slave-bazel to build gerrit
$ docker run --privileged -ti --entrypoint=bash --user jenkins gerritforge/jenkins-slave-bazel
$ cd && git clone --recursive https://gerrit.googlesource.com/gerrit
$ cd gerrit && bazel build gerrit

这至少解决了巴泽尔代理发行。

© www.soinside.com 2019 - 2024. All rights reserved.