diff --git a/Jenkinsfile b/Jenkinsfile index e6de75d..4ecb971 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -55,7 +55,6 @@ pipeline { script: '@findstr /B "PUBLISH_VERSION=" gradle.properties', returnStdout: true ).trim() - echo "DEBUG: verRaw=[${verRaw}]" def currentVer = verRaw.contains('=') ? verRaw.split('=', 2)[1].trim() : '0.1.0' echo "Current PUBLISH_VERSION: ${currentVer}" @@ -65,14 +64,10 @@ pipeline { def minor = parts[1].toInteger() def patch = parts[2].toInteger() - echo "DEBUG: VERSION_BUMP=[${params.VERSION_BUMP}]" - echo "DEBUG: before bump major=${major} minor=${minor} patch=${patch}" - if (params.VERSION_BUMP == 'major') { major++; minor = 0; patch = 0 } else if (params.VERSION_BUMP == 'minor') { minor++; patch = 0 } else { patch++ } - echo "DEBUG: after bump major=${major} minor=${minor} patch=${patch}" def newVer = "${major}.${minor}.${patch}" echo "Auto-bumped PUBLISH_VERSION: ${currentVer} → ${newVer}" env.NEW_VERSION = newVer