master- Sync Repo

This commit is contained in:
Mali Bayhan 2021-12-10 14:36:53 -08:00
parent 07629aa082
commit d23133c22e

View File

@ -34,21 +34,20 @@ pipeline {
} }
stage('Publish Pacts') { stage('Publish Pacts') {
steps { steps {
// 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') {
steps { steps {
sh 'cd /tmp && { curl -LO http://curl.haxx.se/ca/cacert.pem ; cd -; } ' sh 'cd /tmp && { curl -LO http://curl.haxx.se/ca/cacert.pem ; cd -; } '
sh 'export SSL_CERT_FILE=/tmp/cacert.pem' // sh 'export SSL_CERT_FILE=/tmp/cacert.pem'
sh 'echo $SSL_CERT_FILE' // sh 'echo $SSL_CERT_FILE'
// 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' withEnv(['SSL_CERT_FILE=/tmp/cacert.pem']) {
// sh 'tar xzf pact-1.88.3-linux-x86_64.tar.gz' sh 'echo $SSL_CERT_FILE'
// 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 --retry-while-unknown=12 --retry-interval=10 -a messaging-app -b https://pact.bayhan.ca -e ${GIT_COMMIT}" sh 'tar xzf pact-1.88.3-linux-x86_64.tar.gz'
// } sh "./pact-broker can-i-deploy --retry-while-unknown=12 --retry-interval=10 -a messaging-app -b https://pact.bayhan.ca -e ${GIT_COMMIT}"
}
} }
} }
stage('Deploy') { stage('Deploy') {