diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4f04368ec0aa77a7754163418a8d00f2b814a62d..6c50b7e87c881a3aa1a99246b4adcc79997290f2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,9 +9,10 @@ publish-repository:
     - git submodule init
     - git submodule update
     - python3 -m pip install wheel pyang pyangbind
-    - git clone https://osm.etsi.org/gerrit/osm/IM.git
+    - git clone --branch v9.0 https://osm.etsi.org/gerrit/osm/IM.git
     - pip3 install IM/
-    - git clone https://osm.etsi.org/gerrit/osm/osmclient.git
+    - git clone --branch v9.0 https://osm.etsi.org/gerrit/osm/osmclient.git
+    - pip3 install -r osmclient/requirements.txt
     - pip3 install osmclient/
     - rm -rf osmclient/ IM/
     - mv magma/* .
@@ -37,9 +38,10 @@ build-local-repository:
     - git submodule init
     - git submodule update
     - python3 -m pip install wheel pyang pyangbind
-    - git clone https://osm.etsi.org/gerrit/osm/IM.git
+    - git clone --branch v9.0 https://osm.etsi.org/gerrit/osm/IM.git
     - pip3 install IM/
-    - git clone https://osm.etsi.org/gerrit/osm/osmclient.git
+    - git clone --branch v9.0 https://osm.etsi.org/gerrit/osm/osmclient.git
+    - pip3 install -r osmclient/requirements.txt
     - pip3 install osmclient/
     - rm -rf osmclient/ IM/
     - mv magma/* .