diff --git a/ci-scripts/Jenkinsfile-GitLab-Container b/ci-scripts/Jenkinsfile-GitLab-Container
index 821d695d9d9afd5b97bc620856fef7ee8376aa6f..61972c7226480a3c5a6a0266d64f987d22da42a3 100644
--- a/ci-scripts/Jenkinsfile-GitLab-Container
+++ b/ci-scripts/Jenkinsfile-GitLab-Container
@@ -33,7 +33,6 @@ def gitCommitAuthorEmailAddr
 
 // list of failing stages
 def failingStages = ""
-def lockForMessage = 'Parent-Lock'
 
 pipeline {
   agent {
@@ -728,7 +727,7 @@ def triggerSlaveJobNoGitLab (jobName) {
 }
 
 def finalizeSlaveJob(jobName) {
-  lock (lockForMessage) {
+  lock ('Parent-Lock') {
     // In case of any non-success, we are retrieving the HTML report of the last completed
     // slave job. The only drop-back is that we may retrieve the HTML report of a previous build
     if (jobName == 'OAI-CN5G-COTS-UE-Test') {