commeted sonar analasis as getting https error because of http

This commit is contained in:
bhanu 2024-07-12 17:14:22 +05:30
parent 2e06455b5e
commit dfc1489502

20
Jenkinsfile vendored
View file

@ -14,16 +14,16 @@ pipeline {
sh 'mvn clean package' sh 'mvn clean package'
} }
} }
stage('Static Code Analysis') { //stage('Static Code Analysis') {
environment { //environment {
SONAR_URL = "http://20.197.43.119:32768" // SONAR_URL = "http://20.197.43.119:32768"
} // }
steps { // steps {
withCredentials([string(credentialsId: 'sonarqube', variable: 'SONAR_AUTH_TOKEN')]) { // withCredentials([string(credentialsId: 'sonarqube', variable: 'SONAR_AUTH_TOKEN')]) {
sh 'mvn sonar:sonar -Dsonar.login=$SONAR_AUTH_TOKEN -Dsonar.host.url=${SONAR_URL}' // sh 'mvn sonar:sonar -Dsonar.login=$SONAR_AUTH_TOKEN -Dsonar.host.url=${SONAR_URL}'
} // }
} // }
} //}
stage('Build and Push Docker Image') { stage('Build and Push Docker Image') {
environment { environment {
DOCKER_IMAGE = "bhanu3333/kube:${BUILD_NUMBER}" DOCKER_IMAGE = "bhanu3333/kube:${BUILD_NUMBER}"