formation %!s(int64=3) %!d(string=hai) anos
pai
achega
a6c584dc66
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      Jenkinsfile

+ 9 - 0
Jenkinsfile

@@ -135,6 +135,15 @@ node{
 	// 		imageExpress.push('latest')
 	// 	}*/
 	// }
+    stage('SonarQube analysis') 
+    {
+        def scannerHome = tool 'SonarQube Scanner';
+        withSonarQubeEnv('SonarQube') 
+        { 
+        // If you have configured more than one global server connection, you can specify its name
+        sh "${scannerHome}/bin/sonar-scanner -Dsonar.login=admin -Dsonar.password=azerty10"
+        }
+    }
 	
 
     stage('Build Docker MEAN Stack(PreProduction Deployment)')