chore(ci): remove debug logging from version bump
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
这个提交包含在:
父节点
b3114ba522
当前提交
68fc6d9edd
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -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
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户