diff --git a/api/build_config.py b/api/build_config.py
index f01ab333e401102ea989a4e3def222c405310d9d..ad3978bbfc841e58fc6d706185dfa146aeae83ce 100644
--- a/api/build_config.py
+++ b/api/build_config.py
@@ -27,6 +27,7 @@ timeout: 30m
 variables:
     VIDEOAG_CONFIG: /code/config/api_example_config.py
 script:
+    - cd /code
     - ./docker_start.sh -test
 artifacts:
     paths:
diff --git a/build_pipeline_generator.py b/build_pipeline_generator.py
index 21e0ae666e6f71a6bbeb033e12fefdb6a198f3c6..3478cfc9e9e1c6bfb88f0a4d910e415e5d921195 100644
--- a/build_pipeline_generator.py
+++ b/build_pipeline_generator.py
@@ -185,7 +185,7 @@ echo "{\\"auths\\":{\\"$CI_REGISTRY\\":{\\"username\\":\\"$CI_REGISTRY_USER\\",\
         return f"""
 {self.ci_build_job_name()}:
     stage: build-and-test
-    timeout: 1h
+    timeout: 3h
     needs:
         - pipeline: $PARENT_PIPELINE_ID
           job: generate-pipeline