From b3114ba522ff4eb6e594ad2fcc4dee4c43fc16fd Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Sat, 23 May 2026 02:04:01 +0800 Subject: [PATCH] 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 --- Jenkinsfile | 4 +--- gradle.properties | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e576815..e6de75d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 """ } } diff --git a/gradle.properties b/gradle.properties index c455262..b710629 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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