diff --git a/.drone.yml b/.drone.yml
index 8ea80eb76c520cb9ff2414ef62e992fc94df54a0..26124e8753ef1c9ec53066df222245c814106c56 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1353,7 +1353,7 @@ steps:
   commands:
     # JavaScript files are not used in integration tests so it is not needed to
     # build them.
-    - git clone --depth 1 https://github.com/nextcloud/spreed apps/spreed
+    - git clone --depth 1 --branch stable21 https://github.com/nextcloud/spreed apps/spreed
 - name: integration-sharing-v1-video-verification
   image: nextcloudci/integration-php7.3:integration-php7.3-2
   commands:
diff --git a/tests/acceptance/run-local.sh b/tests/acceptance/run-local.sh
index 4da31e35e6c8d1074475f3a1a76219022a7e146c..dc143850c405607882acbd8ef2900aab839ac05d 100755
--- a/tests/acceptance/run-local.sh
+++ b/tests/acceptance/run-local.sh
@@ -64,7 +64,7 @@ if [ "$1" = "--acceptance-tests-dir" ]; then
 fi
 
 ACCEPTANCE_TESTS_CONFIG_DIR="../../$ACCEPTANCE_TESTS_DIR/config"
-DEV_BRANCH="master"
+DEV_BRANCH="stable21"
 
 # "--timeout-multiplier N" option can be provided to set the timeout multiplier
 # to be used in ActorContext.