master- Sync Repo
This commit is contained in:
parent
8479b9b612
commit
aab6ca420f
15
jenkins/cd/Jenkinsfile
vendored
15
jenkins/cd/Jenkinsfile
vendored
@ -11,19 +11,22 @@ 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('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 'cp files/cacert.pem /tmp'
|
||||||
sh 'tar xzf pact-1.88.3-linux-x86_64.tar.gz'
|
withEnv(['SSL_CERT_FILE=/tmp/cacert.pem']) {
|
||||||
dir('pact/bin') {
|
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 "./pact-broker can-i-deploy -a user-service -b https://pact.bayhan.ca -e ${GIT_COMMIT}"
|
sh 'tar xzf pact-1.88.3-linux-x86_64.tar.gz'
|
||||||
|
dir('pact/bin') {
|
||||||
|
sh "./pact-broker can-i-deploy -a user-service -b https://pact.bayhan.ca -e ${GIT_COMMIT}"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user