mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
chore(NA): remove write permissions on Bazel remote cache for PRs (#90652)
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
15a4c285b8
commit
54863889d4
1 changed files with 9 additions and 0 deletions
|
@ -180,6 +180,15 @@ fi
|
|||
###
|
||||
cp -f "$KIBANA_DIR/src/dev/ci_setup/.bazelrc-ci" "$HOME/.bazelrc";
|
||||
|
||||
###
|
||||
### remove write permissions on buildbuddy remote cache for prs
|
||||
###
|
||||
if [[ "$ghprbPullId" ]] ; then
|
||||
echo "# Appended by $KIBANA_DIR/src/dev/ci_setup/setup.sh" >> "$HOME/.bazelrc"
|
||||
echo "# Uploads logs & artifacts without writing to cache" >> "$HOME/.bazelrc"
|
||||
echo "build --noremote_upload_local_results" >> "$HOME/.bazelrc"
|
||||
fi
|
||||
|
||||
###
|
||||
### append auth token to buildbuddy into "$HOME/.bazelrc";
|
||||
###
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue