From 6eb82256b5e543d5278d33215ff899848df39d0b Mon Sep 17 00:00:00 2001 From: radnov Date: Thu, 19 Dec 2024 12:38:55 +0200 Subject: [PATCH] ci: remove boolean type from var definition [skip ci] (#19535) Using a type like `boolean` in the variable definition scopes it to a stage, like `def` would, but we need `isHotfix` in multiple stages. Signed-off-by: Rado --- jenkinsfiles/stable | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jenkinsfiles/stable b/jenkinsfiles/stable index 35a7441be34..90c4f938d2c 100644 --- a/jenkinsfiles/stable +++ b/jenkinsfiles/stable @@ -105,7 +105,7 @@ pipeline { oldImageTag = env.DOCKER_IMAGE_TAG.replace("-rc", "") // If version contains more than 2 dots... It's a hotfix. - boolean isHotfix = oldImageTag.length() - oldImageTag.replace(".", "").length() > 2 + isHotfix = oldImageTag.length() - oldImageTag.replace(".", "").length() > 2 if (!isHotfix) { oldImageTag = "$oldImageTag.0"