JK
This commit is contained in:
parent
fa4dadc8ba
commit
a9b837a962
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -24,6 +24,14 @@ pipeline {
|
|||||||
|
|
||||||
stages {
|
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') {
|
stage('Checkout') {
|
||||||
steps {
|
steps {
|
||||||
checkout([$class: 'GitSCM',
|
checkout([$class: 'GitSCM',
|
||||||
@ -33,6 +41,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stage('Install prerequisites') {
|
stage('Install prerequisites') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user