@@ -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" }
+ }
@@ -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