fix(ci): push detached HEAD to main, sync version to 1.0.4
- Use `git push origin HEAD:main` instead of `git push origin main` because Jenkins checks out a specific commit (detached HEAD) - Sync gradle.properties to 1.0.4 (already published to Nexus) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
这个提交包含在:
父节点
e1521ea7ec
当前提交
b3114ba522
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -119,13 +119,11 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
bat """
|
||||
git checkout main
|
||||
git config user.email "jenkins@xuqm.com"
|
||||
git config user.name "Jenkins CI"
|
||||
git add gradle.properties
|
||||
git diff --cached --quiet || git commit -m "ci: bump PUBLISH_VERSION to ${env.NEW_VERSION}"
|
||||
git pull --rebase origin main
|
||||
git push origin main
|
||||
git push origin HEAD:main
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,4 +2,4 @@ org.gradle.jvmargs=-Xmx4096m -Dfile.encoding=UTF-8
|
||||
android.useAndroidX=true
|
||||
kotlin.code.style=official
|
||||
android.nonTransitiveRClass=true
|
||||
PUBLISH_VERSION=1.0.3
|
||||
PUBLISH_VERSION=1.0.4
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户