[ci] Move continueOnError flag for Bazel fetch step
This is an attempt to try and trigger a warning on Github instead of a failure.
Signed-off-by: Miles Dai <milesdai@google.com>
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index aeed1e9..cad201e 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -106,18 +106,22 @@
- job: download_bazel_dependencies
displayName: Prefetch Bazel deps
# Download Bazel fetched dependencies
- continueOnError: True
pool:
vmImage: ubuntu-18.04
steps:
- bash: |
set -x -e
- util/prep-bazel-airgapped-build.sh
+ util/prep-bazel-airgapped-build.sh || {
+ echo -n "##vso[task.logissue type=warning]Failed to prefetch Bazel dependencies";
+ exit 1;
+ }
rm -rf bazel-airgapped/bitstreams-cache
tar -cf bazel-airgapped.tar.gz bazel-airgapped
- displayName: Download & package dependencies
+ displayName: Pre-fetch and package Bazel dependencies
+ continueOnError: True # This step is flaky on the ubuntu-18.04 image
- publish: $(System.DefaultWorkingDirectory)/bazel-airgapped.tar.gz
artifact: bazel-dependencies
+ condition: eq(variables['Agent.JobStatus'], 'Succeeded')
- job: slow_lints
displayName: Quality (in-depth lint)