From 235271d9fd734321ef3d6381bdbf3324293c81bf Mon Sep 17 00:00:00 2001 From: smur1968 <108237516+smur1968@users.noreply.github.com> Date: Tue, 12 Sep 2023 04:48:53 +0530 Subject: [PATCH] Update Jenkinsfile for sonarqube --- Jenkinsfile | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 80bed39d..417d86fc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,26 +43,26 @@ pipeline{ } } } - stage('Static code analysis: Sonarqube'){ - when { expression { params.action == 'create' } } - steps{ - script{ + // stage('Static code analysis: Sonarqube'){ + // when { expression { params.action == 'create' } } + // steps{ + // script{ - def SonarQubecredentialsId = 'sonarqube-api' - statiCodeAnalysis(SonarQubecredentialsId) - } - } - } - stage('Quality Gate Status Check : Sonarqube'){ - when { expression { params.action == 'create' } } - steps{ - script{ + // def SonarQubecredentialsId = 'sonarqube-api' + // statiCodeAnalysis(SonarQubecredentialsId) + // } + // } + // } + // stage('Quality Gate Status Check : Sonarqube'){ + // when { expression { params.action == 'create' } } + // steps{ + // script{ - def SonarQubecredentialsId = 'sonarqube-api' - QualityGateStatus(SonarQubecredentialsId) - } - } - } + // def SonarQubecredentialsId = 'sonarqube-api' + // QualityGateStatus(SonarQubecredentialsId) + // } + // } + // } stage('Maven Build : maven'){ when { expression { params.action == 'create' } } steps{