From 6c834fe6db0e319d6421fe15b4fa2448e18eb530 Mon Sep 17 00:00:00 2001 From: Bharatkumar5690 Date: Wed, 8 Mar 2023 12:10:01 +0530 Subject: [PATCH] added artifacts and test reports --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) 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' + } + } } }