diff --git a/tests/platform-ci/ci-build.sh b/tests/platform-ci/ci-build.sh
index 9332c12c0fe384cc6a89b2e26f1085055cd6c64d..1c9cc416b7dc6ed7bc0ec24e17dd2bce8dfd1c72 100755
--- a/tests/platform-ci/ci-build.sh
+++ b/tests/platform-ci/ci-build.sh
@@ -146,7 +146,8 @@ upgrade_test() {
   # Checkout stable branch containing last release
   # and deploy this
   cd "$PLATFORMDIR"
-  git remote add leap https://leap.se/git/leap_platform
+  # 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
   # After checking out a different platform branch