From 540ac9eb6bc777df29815ad4a2487034578d69e3 Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Wed, 17 Jun 2020 16:20:52 +0900 Subject: [PATCH] Trigger all CI jobs for Dockerfile changes (#10651) * Trigger docs job for possible mdbook updates, too * Update comment * Intentionally trigger ci docs job? * Broaden more * Revert "Intentionally trigger ci docs job?" This reverts commit 801cf2bfdf885cd11c1bf0bdde8f973bb75db854. --- ci/buildkite-pipeline.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/buildkite-pipeline.sh b/ci/buildkite-pipeline.sh index ab7c16722..50c8d90b6 100755 --- a/ci/buildkite-pipeline.sh +++ b/ci/buildkite-pipeline.sh @@ -25,7 +25,8 @@ annotate() { } # Checks if a CI pull request affects one or more path patterns. Each -# argument is checked in series. +# pattern argument is checked in series. If one of them found to be affected, +# return immediately as such. # # Bash regular expressions are permitted in the pattern: # affects .rs$ -- any file or directory ending in .rs @@ -41,7 +42,8 @@ affects() { # the worse (affected) return 0 fi - for pattern in "$@"; do + # Assume everyting needs to be tested when any Dockerfile changes + for pattern in ^ci/docker-rust/Dockerfile ^ci/docker-rust-nightly/Dockerfile "$@"; do if [[ ${pattern:0:1} = "!" ]]; then for file in "${affected_files[@]}"; do if [[ ! $file =~ ${pattern:1} ]]; then