diff --git a/Jenkinsfile b/Jenkinsfile index bc714120d..733a39ae3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,5 +13,13 @@ pipeline { sh 'mvn package' } } + stage('test code by using sonarqube') { + steps { + archiveArtifacts artifacts: '**/target/gameoflife.war', + onlyIfSuccessful: true, + allowEmptyArchive: true + junit testResults: '**/surefire-reports/TEST-*.xml' + } + } } }