summaryrefslogtreecommitdiff
path: root/tcwg_kernel-bisect.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tcwg_kernel-bisect.sh')
-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