Update insurance/Jenkinsfile.InsuranceBe
This commit is contained in:
@@ -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
|
||||
"""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user