Update insurance/Jenkinsfile.InsuranceBe

This commit is contained in:
2025-08-26 11:42:23 +08:00
parent 542a13d915
commit a29b339148

View File

@@ -13,7 +13,7 @@ pipeline {
stage('Checkout Code') {
steps {
checkout([$class: 'GitSCM',
branches: [[name: '*/develop']],
branches: [[name: '*/main']],
userRemoteConfigs: [[
url: 'https://git.hzwnrw.my/Insurance/insurance-be.git',
credentialsId: env.GITEA_CREDENTIALS
@@ -65,7 +65,7 @@ pipeline {
git config user.name "Jenkins"
git add pom.xml
git commit -m "Auto-increment version to ${newVersion}" || echo "No changes to commit"
git push https://${GIT_USER}:${GIT_PASS}@git.hzwnrw.my/Insurance/insurance-be.git HEAD:develop || exit 1
git push https://${GIT_USER}:${GIT_PASS}@git.hzwnrw.my/Insurance/insurance-be.git HEAD:main || exit 1
"""
}