master- Sync Repo

This commit is contained in:
Mali Bayhan 2021-12-10 10:08:45 -08:00
parent 26c3813043
commit d4cb80be69

View File

@ -17,16 +17,26 @@ pipeline {
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
// dir('messaging-app') { // dir('messaging-app') {
sh 'mvn clean verify' sh 'mvn clean verify'
// } // }
} }
} }
stage('Static Code Analysis') {
steps {
withSonarQubeEnv('cicd') {
sh 'mvn sonar:sonar'
}
}
// maven:end
}
stage('Publish Pacts') { stage('Publish Pacts') {
steps { steps {
// dir('messaging-app') { // dir('messaging-app') {
sh 'mvn pact:publish -Dpact.consumer.version=${GIT_COMMIT} -Dpact.tag=${BRANCH_NAME}' sh 'mvn pact:publish -Dpact.consumer.version=${GIT_COMMIT} -Dpact.tag=${BRANCH_NAME}'
// } // }
} }
} }
stage('Check Pact Verifications') { stage('Check Pact Verifications') {