diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 90bee7568b8d2f7c111a10d13aeefd3219661961..86f8671ff635386fd1ab10e27802251fb271a422 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -85,8 +85,11 @@ synth-check-programming-files:
 ###############################################################################
 # Trigger hardware test only on merge request
 ###############################################################################
+
 trigger-opc-ua-test:
     stage: hardware
+    variables:
+        HDL_BRANCH: $CI_COMMIT_BRANCH
     only:
         changes:
             - applications/lofar2/images/lofar2_unb2b_sdp_station_full.tar.gz