From 458e74a7f9d15b035d0570e769953df78a1c73e5 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Tue, 17 Dec 2024 13:46:15 +0100
Subject: [PATCH] resolve commments

---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 0fe2e03..75ef585 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -230,7 +230,7 @@ String validateBranchName(branchName) {
 }
 
 String buildVersionName() {
-    if (env.BRANCH_NAME == 'release') {
+    if (isReleaseBranch()) {
 	    return VERSION
     }
     return "${VERSION}-${validateBranchName(env.BRANCH_NAME)}-${env.GIT_COMMIT.take(7)}".replaceAll("_", "-")
-- 
GitLab