From dfc148950240e3d74f3aec115c0aa605ef4ca571 Mon Sep 17 00:00:00 2001 From: bhanu Date: Fri, 12 Jul 2024 17:14:22 +0530 Subject: [PATCH] commeted sonar analasis as getting https error because of http --- Jenkinsfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0c9ca575a..32299ffe4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,16 +14,16 @@ pipeline { sh 'mvn clean package' } } - stage('Static Code Analysis') { - environment { - SONAR_URL = "http://20.197.43.119:32768" - } - steps { - withCredentials([string(credentialsId: 'sonarqube', variable: 'SONAR_AUTH_TOKEN')]) { - sh 'mvn sonar:sonar -Dsonar.login=$SONAR_AUTH_TOKEN -Dsonar.host.url=${SONAR_URL}' - } - } - } + //stage('Static Code Analysis') { + //environment { + // SONAR_URL = "http://20.197.43.119:32768" + // } + // steps { + // withCredentials([string(credentialsId: 'sonarqube', variable: 'SONAR_AUTH_TOKEN')]) { + // sh 'mvn sonar:sonar -Dsonar.login=$SONAR_AUTH_TOKEN -Dsonar.host.url=${SONAR_URL}' + // } + // } + //} stage('Build and Push Docker Image') { environment { DOCKER_IMAGE = "bhanu3333/kube:${BUILD_NUMBER}"