summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2022-08-13 20:06:37 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2022-08-13 20:06:37 +0000
commit96f91382cbc54ae6ac276871c0be07e66335eeb9 (patch)
treeffb25c0b6f1f78d7ef514874c699303daf6d1b15
parent59018635e80700eaecd9c0f388b850cac276809b (diff)
round-robin.sh: Handle partial/bisect builds in set_current_git()
In bisect builds we skip reset_artifacts, so need to create artifacts/git/ in set_current_git(). Change-Id: Iadee80922ca688614765b8ccfa995d8baa736c45
-rw-r--r--round-robin.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/round-robin.sh b/round-robin.sh
index 720e0e8d..83dfbb15 100644
--- a/round-robin.sh
+++ b/round-robin.sh
@@ -139,7 +139,9 @@ rr[base-artifacts_rev]=$(git -C base-artifacts rev-parse HEAD)
EOF
if ! [ -d base-artifacts/git/ ]; then
- # E.g., we are in "init" mode of update_baseline.
+ # We are in "init" baseline build, apparently. "Init" builds should
+ # have a full set of git data for all components specified on
+ # the command line, so that get_baseline_git() is not called.
mkdir base-artifacts/git
# Transitional workaround
@@ -158,7 +160,6 @@ EOF
elif [ -f base-artifacts/jenkins/manifest.sh ]; then
source base-artifacts/jenkins/manifest.sh
else
- # We are in "init" baseline build, apparently.
# Do nothing and hope get_baseline_git() is not called.
exit 0
fi
@@ -197,6 +198,7 @@ set_current_git ()
{
(
set -euf -o pipefail
+ mkdir -p ${rr[top_artifacts]}/git
cat > "${rr[top_artifacts]}/git/$1"
)
}