diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1854a42a694896a413572c324941a92d6757963c..739f99446c9a3169349c8bc17a614135f788a793 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -176,7 +176,7 @@ trigger_inttest:
 # After the cppinttest have been successful, also start tests for Octave...
 trigger_octavelib:
   stage: deploy
-  needs: [ trigger_prepare ]
+  needs: [ trigger_inttest ]
   inherit:
     variables:
       # List the variables that shall be inherited, which also means they will override any equally
@@ -195,7 +195,7 @@ trigger_octavelib:
 # ... and for Julia.
 trigger_julialib:
   stage: deploy
-  needs: [ trigger_prepare ]
+  needs: [ trigger_inttest ]
   inherit:
     variables:
       # List the variables that shall be inherited, which also means they will override any equally