master- Sync Repo
This commit is contained in:
parent
26c3813043
commit
d4cb80be69
18
jenkins/cd/Jenkinsfile
vendored
18
jenkins/cd/Jenkinsfile
vendored
@ -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') {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user