From 12100d21e2c18078333184dc6d37767d0a3c4b0b Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Wed, 29 Apr 2020 12:30:46 +1000 Subject: [PATCH] [CI] Linting optimisations (#940) * [CI] Lint all builds except tagged commits to satisfy branch protection * [CI] Add automatic retries for linting failures This is to treat any issues with the reviewdog API server and occasional failures we are seeing. --- .buildkite/pipeline.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildkite/pipeline.sh b/.buildkite/pipeline.sh index fdcabfc01..2f21f4179 100755 --- a/.buildkite/pipeline.sh +++ b/.buildkite/pipeline.sh @@ -28,7 +28,9 @@ env: steps: - label: ":service_dog: Linting" command: "reviewdog -reporter=github-check" - if: build.branch !~ /^(master)|(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ && build.env("CI_BYPASS") != "true" + retry: + automatic: true + if: build.branch !~ /^(v[0-9]+\.[0-9]+\.[0-9]+)$\$/ - label: ":hammer_and_wrench: Unit Test" command: "authelia-scripts --log-level debug ci"