diff --git a/tests/platform-ci/ci-build.sh b/tests/platform-ci/ci-build.sh
index 1c9cc416b7dc6ed7bc0ec24e17dd2bce8dfd1c72..5c21bfb733d7c8659f58a8255bda7f2d56365914 100755
--- a/tests/platform-ci/ci-build.sh
+++ b/tests/platform-ci/ci-build.sh
@@ -149,7 +149,7 @@ upgrade_test() {
   # due to cache, this remote is sometimes already added
   git remote add leap https://leap.se/git/leap_platform || true
   git fetch leap
-  git checkout -b leap_stable remotes/leap/stable
+  git checkout -b leap_stable remotes/leap/stable || true
   # After checking out a different platform branch
   # bundle install is needed again
   cd "$ROOTDIR"