This commit is contained in:
Anupong Hompan 2025-10-25 22:26:12 +07:00
parent a9b837a962
commit 5b0a74c614

14
Jenkinsfile vendored
View File

@ -25,12 +25,7 @@ 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 {
@ -41,6 +36,13 @@ pipeline {
}
}
withSonarQubeEnv('SonarQube Health Check') {
sh '''
curl -sf "$SONAR_HOST_URL/api/system/health" \
|| { echo "Cannot reach SonarQube at $SONAR_HOST_URL"; exit 1; }
'''
}
stage('Install prerequisites') {
steps {