]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Do not fail post-merge jobs after force-push
authorPetr Špaček <pspacek@isc.org>
Thu, 25 Sep 2025 10:22:41 +0000 (12:22 +0200)
committerMichał Kępień <michal@isc.org>
Fri, 24 Oct 2025 02:42:58 +0000 (04:42 +0200)
Rebase happens in -sub branches regularly so these failures would
produce log noice.

.gitlab-ci.yml

index 41cd632a1ba8f0762be473b73ef007e46834b426..c6143f4f4cd1b70b0011461058dd4e834ea92844 100644 (file)
@@ -2057,7 +2057,7 @@ pairwise:
     - >
       echo "previous branch tip: $CI_COMMIT_BEFORE_SHA"
     - set +o pipefail; git log --format='%H' | grep --silent "$CI_COMMIT_BEFORE_SHA" && PREVIOUS_TIP_REACHABLE=1
-    - test "$PREVIOUS_TIP_REACHABLE" != "1" && echo "force-push detected, stop" && exit 1
+    - test "$PREVIOUS_TIP_REACHABLE" != "1" && echo "force-push detected, stop" && exit 0
     # non-fast-forward merges are disabled so we have to have merge commit on top
     - MERGE_REQUEST_ID="$(git log -1 --format='%b' | sed --silent -e "s|^See merge request ${CI_PROJECT_PATH}\!||p")"
     - >