Skip to content

Commit

Permalink
added the extra build option
Browse files Browse the repository at this point in the history
Signed-off-by: Yifan Yang <[email protected]>
  • Loading branch information
Yifan Yang committed Aug 14, 2020
1 parent a42a677 commit 7bcef8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ parameters:
default: true
- name: bazelBuildExtraOptions
type: string
default: ""
default: "--flaky_test_attempts=2"

steps:
- task: Cache@2
Expand Down
9 changes: 7 additions & 2 deletions .azure-pipelines/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ trigger:
include:
- "v*"

parameters:
- name: flakyBuildOption
type: string
default: "--flaky_test_attempts=2"

# PR build config is manually overridden in Azure pipelines UI with different secrets
pr: none

Expand Down Expand Up @@ -166,7 +171,7 @@ jobs:
- script: ./ci/mac_ci_steps.sh
displayName: "Run Mac CI"
env:
BAZEL_BUILD_EXTRA_OPTIONS: --remote_download_toplevel
BAZEL_BUILD_EXTRA_OPTIONS: "--remote_download_toplevel ${{flakyBuildOption}}"
BAZEL_REMOTE_CACHE: grpcs://remotebuildexecution.googleapis.com
BAZEL_REMOTE_INSTANCE: projects/envoy-ci/instances/default_instance
GCP_SERVICE_ACCOUNT_KEY: $(GcpServiceAccountKey)
Expand All @@ -187,7 +192,7 @@ jobs:
displayName: "Run Windows CI"
env:
ENVOY_RBE: "true"
BAZEL_BUILD_EXTRA_OPTIONS: "--config=remote-ci --config=remote-msvc-cl --jobs=$(RbeJobs)"
BAZEL_BUILD_EXTRA_OPTIONS: "--config=remote-ci --config=remote-msvc-cl --jobs=$(RbeJobs) ${{flakyBuildOption}}"
BAZEL_REMOTE_CACHE: grpcs://remotebuildexecution.googleapis.com
BAZEL_REMOTE_INSTANCE: projects/envoy-ci/instances/default_instance
GCP_SERVICE_ACCOUNT_KEY: $(GcpServiceAccountKey)

0 comments on commit 7bcef8c

Please sign in to comment.