diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f75a604f9925d08f8121977abb28e2ecc112b136..f49ff0a5ac21d22c9d53d173d4a2991e8b7871b7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -95,9 +95,12 @@ stages:
   - if [ -d laser_scan_utils ]; then
   -   echo "directory laser_scan_utils exists"
   -   cd laser_scan_utils
+  -   git checkout devel
+  -   git pull
+  -   git checkout $LASERSCANUTILS_BRANCH
   -   git pull
   - else
-  -   git clone https://gitlab.iri.upc.edu/labrobotica/algorithms/laser_scan_utils.git
+  -   git clone -b $LASERSCANUTILS_BRANCH https://gitlab.iri.upc.edu/labrobotica/algorithms/laser_scan_utils.git
   -   cd laser_scan_utils
   - fi
   - mkdir -pv build