JetBrains / teamcity-bazel-plugin

TeamCity plugin for Bazel build system
Apache License 2.0
14 stars 6 forks source link

Non working Build Event Protocol after bazel >= 1.0.0 #3

Closed SKART1 closed 4 years ago

SKART1 commented 4 years ago

In bazel version >= 1.0.0

All gRPC connections from Bazel will default to TLS enabled. To disable TLS use the grpc:// scheme in your URIs. Flags affected are: --remote_cache, --remote_executor and --bes_backend. See #8061 for details.

while bazel-event-service is passing version without explicitly set protocol and waiting plaing messages (without TLS)

We solved this problem by temporary adding proxy script which ads protocol to the build command line arguments:

/home/teamcity/.bazel/bin/bazel `echo $* | sed -e 's/--bes_backend=localhost/--bes_backend=grpc:\/\/localhost/'
NikolayPianikov commented 4 years ago

Fixed