- Force ASCII output encoding in PowerShell to avoid hidden chars
- Add git checkout main before commit to avoid detached HEAD
- Simplify version reading command
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Replace PowerShell-based version reading with Groovy's readProperties
and readFile/writeFile to avoid encoding issues causing "1.0.3→1.0.3"
- Add git pull --rebase before push to handle non-fast-forward rejections
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Strip \r\n from PowerShell output to fix version parsing
(was causing "1.0.3 → 1.0.3" instead of "1.0.3 → 1.0.4")
- Remove gitlab-credentials dependency, use git remote URL
which already has the access token embedded
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
The Jenkinsfile bumped PUBLISH_VERSION during the run but never
committed the change, causing every run to start from the same
base version. Now commits gradle.properties back to main after
successful Nexus publish.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Remove RUN_TESTS parameter and Unit Tests stage.
Publish SPM and CocoaPods are now the only publish paths.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>