master- Sync Repo
This commit is contained in:
parent
ddd667b7f4
commit
18efbeaf1b
14
jenkins/cd/Jenkinsfile
vendored
14
jenkins/cd/Jenkinsfile
vendored
@ -11,13 +11,21 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage ('Build') {
|
stage ('Build') {
|
||||||
steps {
|
steps {
|
||||||
// dir('user-service') {
|
// dir('user-service') {
|
||||||
sh 'mvn clean verify ' +
|
sh 'mvn clean verify ' +
|
||||||
"-Dpact.provider.version=${GIT_COMMIT} " +
|
"-Dpact.provider.version=${GIT_COMMIT} " +
|
||||||
'-Dpact.verifier.publishResults=true'
|
'-Dpact.verifier.publishResults=true'
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Static Code Analysis') {
|
||||||
|
steps {
|
||||||
|
withSonarQubeEnv('cicd') {
|
||||||
|
sh 'mvn sonar:sonar'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Check Pact Verifications') {
|
stage('Check Pact Verifications') {
|
||||||
steps {
|
steps {
|
||||||
sh 'curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.88.3/pact-1.88.3-linux-x86_64.tar.gz'
|
sh 'curl -LO https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.88.3/pact-1.88.3-linux-x86_64.tar.gz'
|
||||||
@ -35,5 +43,5 @@ pipeline {
|
|||||||
echo 'Deploying to prod now...'
|
echo 'Deploying to prod now...'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user