From f10419759c982dce3f56434b99b79f1395eb3cb0 Mon Sep 17 00:00:00 2001 From: Nial <48334675+nmcc1212@users.noreply.github.com> Date: Fri, 5 Apr 2024 09:27:46 +0100 Subject: [PATCH] add sonarqube --- Jenkins/Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkins/Jenkinsfile b/Jenkins/Jenkinsfile index 9f44956..17b915e 100644 --- a/Jenkins/Jenkinsfile +++ b/Jenkins/Jenkinsfile @@ -21,6 +21,14 @@ pipeline { sh 'ls -la' } } + stage ('sonarqube') { + steps { + withSonarQubeEnv('newnewtitanium') { + sh "${scannerHome}/bin/sonar-scanner" + } + } + } + } stage('run website') { steps { sh './Jenkins/start.sh'