Explorar o código

test sonarqube

formation %!s(int64=5) %!d(string=hai) anos
pai
achega
160ad9378b
Modificáronse 2 ficheiros con 7 adicións e 1 borrados
  1. 5 0
      Jenkinsfile
  2. 2 1
      build/docker/apache/Dockerfile

+ 5 - 0
Jenkinsfile

@@ -35,4 +35,9 @@ node{
     stage('stage 2bis'){
         sh 'ls -ls'
     }
+    stage('SonarQube analysis') { 
+        def scannerHome = tool 'SonarQube Scanner 2.8'; 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=admin" } 
+    }
 }

+ 2 - 1
build/docker/apache/Dockerfile

@@ -15,6 +15,7 @@ COPY $PWD/build/docker/apache/apache.conf /etc/apache2/sites-available/foodgame.
 RUN a2dissite 000-default default-ssl
 RUN a2ensite foodgame.fr
 
-WORKDIR /var/www/src/index.php
+WORKDIR /var/www/index.html
+
 
 EXPOSE 80