This commit is contained in:
Anupong Hompan 2025-10-25 22:25:21 +07:00
parent fa4dadc8ba
commit a9b837a962

9
Jenkinsfile vendored
View File

@ -24,6 +24,14 @@ pipeline {
stages {
withSonarQubeEnv('SonarQube Health Check') {
sh '''
curl -sf "$SONAR_HOST_URL/api/system/health" \
|| { echo "Cannot reach SonarQube at $SONAR_HOST_URL"; exit 1; }
'''
}
stage('Checkout') {
steps {
checkout([$class: 'GitSCM',
@ -33,6 +41,7 @@ pipeline {
}
}
stage('Install prerequisites') {
steps {
sh '''