Skip to content

Commit

Permalink
ci: remove boolean type from var definition [skip ci] (#19535)
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 <radoslav@dhis2.org>
  • Loading branch information
radnov authored Dec 19, 2024
1 parent 0d2ff4e commit 6eb8225
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 @@ -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"
Expand Down

0 comments on commit 6eb8225

Please sign in to comment.