added artifacts and test reports

This commit is contained in:
Bharatkumar5690 2023-03-08 12:10:01 +05:30
parent 48907f4bd2
commit 6c834fe6db

8
Jenkinsfile vendored
View file

@ -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'
}
}
}
}