From d4cb80be69b9b9af9a5e09df310f83c48759e73f Mon Sep 17 00:00:00 2001 From: Mali Bayhan Date: Fri, 10 Dec 2021 10:08:45 -0800 Subject: [PATCH] master- Sync Repo --- jenkins/cd/Jenkinsfile | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/jenkins/cd/Jenkinsfile b/jenkins/cd/Jenkinsfile index 3e2a40b..c573b82 100644 --- a/jenkins/cd/Jenkinsfile +++ b/jenkins/cd/Jenkinsfile @@ -17,16 +17,26 @@ pipeline { stages { stage('Build') { steps { - // dir('messaging-app') { + // dir('messaging-app') { sh 'mvn clean verify' - // } + // } } } + + stage('Static Code Analysis') { + steps { + withSonarQubeEnv('cicd') { + sh 'mvn sonar:sonar' + } + } + + // maven:end + } stage('Publish Pacts') { steps { - // dir('messaging-app') { + // dir('messaging-app') { sh 'mvn pact:publish -Dpact.consumer.version=${GIT_COMMIT} -Dpact.tag=${BRANCH_NAME}' - // } + // } } } stage('Check Pact Verifications') {