summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-01-19 15:54:49 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-01-22 13:40:38 +0000
commit32e2f0a24eebd8dc1222b77c1b9ce2ef43c8ac87 (patch)
treef69ac532ea5e0fb9680f51c9e4710c5c4fb1ed0e
parent8cca9648a54effcc210be7260a8a03df1bc162a5 (diff)
tcwg_kernel-bisect.sh: Re-arrange code.
Change-Id: I0fa117d18dcec89e2c5c7e1e65c9f32d28d51511
-rwxr-xr-xtcwg_kernel-bisect.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/tcwg_kernel-bisect.sh b/tcwg_kernel-bisect.sh
index e3783f06..df37dcc9 100755
--- a/tcwg_kernel-bisect.sh
+++ b/tcwg_kernel-bisect.sh
@@ -255,19 +255,6 @@ cd ..
mkdir $artifacts/git-logs
find "$current_project" -path "$current_project/.git/BISECT_*" -print0 | xargs -0 -I@ mv @ $artifacts/git-logs/
-# Reset baseline to the regressed commit so that we will catch subsequent
-# regressions (worse than $bad_rev).
-cat > $artifacts/trigger-1-reset-baseline <<EOF
-current_project=$current_project
-current_rev=$first_bad
-reset_baseline=true
-EOF
-
-# Trigger master build now instead of waiting for next timed SCM trigger.
-cat > $artifacts/trigger-2-build-master <<EOF
-current_project=$current_project
-EOF
-
if [ -f $artifacts/first-bad ]; then
mkdir -p $artifacts/jenkins
touch $artifacts/jenkins/build-name
@@ -369,4 +356,17 @@ cat > $artifacts/jenkins/mail-recipients.txt <<EOF
$CI_MAIL_RECIPIENTS
EOF
+# Reset baseline to the regressed commit so that we will catch subsequent
+# regressions (worse than $bad_rev).
+cat > $artifacts/trigger-1-reset-baseline <<EOF
+current_project=$current_project
+current_rev=$first_bad
+reset_baseline=true
+EOF
+
+# Trigger master build now instead of waiting for next timed SCM trigger.
+cat > $artifacts/trigger-2-build-master <<EOF
+current_project=$current_project
+EOF
+
trap "" EXIT