Fixes branch name

This commit is contained in:
Vitor Pamplona
2025-08-21 14:11:56 -04:00
parent 631270fc37
commit fd26ae5543

View File

@@ -21,7 +21,7 @@ def getCurrentBranch() {
def generateVersionName(String baseVersion) {
def currentBranch = getCurrentBranch()
if (currentBranch == "main" || currentBranch == "master") {
if (currentBranch == "main" || currentBranch == "master" || currentBranch == "unknown") {
return baseVersion
} else {
// Clean branch name for version (replace special characters)