From c78cf23b00c8b53cdce4e68e6df0ef6b01d6f23f Mon Sep 17 00:00:00 2001 From: BrahmanapallyNagaraju <44258487+BrahmanapallyNagaraju@users.noreply.github.com> Date: Thu, 9 Apr 2020 22:23:10 +0530 Subject: [PATCH] added code analysis stage --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 5957f9247..099c02e4d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,6 +21,13 @@ stages { } } } + stage ("sonar cloud code analysis") { + steps { + dir("spring-petclinic") { + sh "./mvnw verify sonar:sonar" + } + } + } stage("deploy") { steps { dir("spring-petclinic") {