Update clinic/service/Jenkinsfile.PatientService

This commit is contained in:
2025-05-25 20:40:07 +08:00
parent 9beefc662e
commit ff2577b421

View File

@@ -15,7 +15,7 @@ pipeline {
checkout([$class: 'GitSCM', checkout([$class: 'GitSCM',
branches: [[name: '*/develop']], branches: [[name: '*/develop']],
userRemoteConfigs: [[ userRemoteConfigs: [[
url: 'http://192.168.100.103:3000/Clinic/clinic-patient-service.git', url: 'https://git.hzwnrw.my/Clinic/clinic-patient-service.git',
credentialsId: env.GITEA_CREDENTIALS credentialsId: env.GITEA_CREDENTIALS
]] ]]
]) ])
@@ -59,7 +59,7 @@ pipeline {
git config user.name "Jenkins" git config user.name "Jenkins"
git add pom.xml git add pom.xml
git commit -m "Auto-increment version to ${newVersion}" || echo "No changes to commit" git commit -m "Auto-increment version to ${newVersion}" || echo "No changes to commit"
git push http://${GIT_USER}:${GIT_PASS}@192.168.100.103:3000/Clinic/clinic-patient-service.git HEAD:develop || exit 1 git push https://${GIT_USER}:${GIT_PASS}@git.hzwnrw.my/Clinic/clinic-patient-service.git HEAD:develop || exit 1
""" """
} }