Skip to content

Commit

Permalink
ci: remove boolean type from var definition [skip ci] (#19533)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
radnov authored Dec 19, 2024
1 parent 5c18694 commit 7d46c5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jenkinsfiles/stable
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,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"
Expand Down

0 comments on commit 7d46c5b

Please sign in to comment.