diff --git a/scripts/ci/extends/rules-master-manual.yml b/scripts/ci/extends/rules-master-manual.yml
index 57e526cd403efe06aefa598d3eae3ac5648e5b86..35c0f41b3341e7a071a27b8754bb45780386fa7d 100644
--- a/scripts/ci/extends/rules-master-manual.yml
+++ b/scripts/ci/extends/rules-master-manual.yml
@@ -1,5 +1,5 @@
 .rules-master-manual:
   rules:
-    - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
+    - if: '$CI_COMMIT_BRANCH == "master"'
     - when: manual
       allow_failure: true
diff --git a/scripts/ci/jobs/build-gui-linux.yml b/scripts/ci/jobs/build-gui-linux.yml
index ad4040fa255121b59e1c5087c880b07bd5d53c28..c69a7edd4bc5ba5536ad0ceb40214694dc8f1e2f 100644
--- a/scripts/ci/jobs/build-gui-linux.yml
+++ b/scripts/ci/jobs/build-gui-linux.yml
@@ -8,7 +8,7 @@ build gui linux:
     - job: build linux
       artifacts: false
   rules:
-    - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
+    - if: '$CI_COMMIT_BRANCH == "master"'
     - changes:
       - Applications/DataExplorer/**/*
     - when: manual
diff --git a/scripts/ci/jobs/build-gui-mac.yml b/scripts/ci/jobs/build-gui-mac.yml
index 4b8d86c3b0d4aaa66838aa62c448e69beb139027..476482cffc63a16e0e5fa6979e565c1d68a5a5c8 100644
--- a/scripts/ci/jobs/build-gui-mac.yml
+++ b/scripts/ci/jobs/build-gui-mac.yml
@@ -7,7 +7,7 @@ build gui mac:
   tags:
     - mac
   rules:
-    - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
+    - if: '$CI_COMMIT_BRANCH == "master"'
     - changes:
       - Applications/DataExplorer/**/*
     - when: manual
diff --git a/scripts/ci/jobs/build-gui-win.yml b/scripts/ci/jobs/build-gui-win.yml
index d19123916365d89c4af34665bae99dc871226f43..504e63bdf75e8ad1a5e1bb05dad08fdc7c6cf0e9 100644
--- a/scripts/ci/jobs/build-gui-win.yml
+++ b/scripts/ci/jobs/build-gui-win.yml
@@ -5,7 +5,7 @@ build gui win:
     - job: build win
       artifacts: false
   rules:
-    - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
+    - if: '$CI_COMMIT_BRANCH == "master"'
     - changes:
       - Applications/DataExplorer/**/*
     - when: manual
diff --git a/scripts/ci/jobs/build-linux-frontend.yml b/scripts/ci/jobs/build-linux-frontend.yml
index 113ec15e129ad2c4ec1c58a70d8f28de464cf3fb..594264ef42ada913f40174a555eea018d38ac9a1 100644
--- a/scripts/ci/jobs/build-linux-frontend.yml
+++ b/scripts/ci/jobs/build-linux-frontend.yml
@@ -3,7 +3,7 @@ build linux frontend:
   tags:
     - frontend1
   rules:
-    - if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
+    - if: '$CI_COMMIT_BRANCH == "master"'
     - when: manual
       allow_failure: true