diff --git a/Jenkinsfile b/Jenkinsfile index ad077a9..2966595 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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 {