From d23133c22ea51e297478409c7b37363b8739118b Mon Sep 17 00:00:00 2001 From: Mali Bayhan Date: Fri, 10 Dec 2021 14:36:53 -0800 Subject: [PATCH] master- Sync Repo --- jenkins/cd/Jenkinsfile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/jenkins/cd/Jenkinsfile b/jenkins/cd/Jenkinsfile index bae69c9..846da2c 100644 --- a/jenkins/cd/Jenkinsfile +++ b/jenkins/cd/Jenkinsfile @@ -34,21 +34,20 @@ pipeline { } stage('Publish Pacts') { steps { - // dir('messaging-app') { sh 'mvn pact:publish -Dpact.consumer.version=${GIT_COMMIT} -Dpact.tag=${BRANCH_NAME}' - // } } } stage('Check Pact Verifications') { steps { sh 'cd /tmp && { curl -LO http://curl.haxx.se/ca/cacert.pem ; cd -; } ' - sh 'export SSL_CERT_FILE=/tmp/cacert.pem' - 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' - // sh 'tar xzf pact-1.88.3-linux-x86_64.tar.gz' - // dir('pact/bin') { - // 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 'export SSL_CERT_FILE=/tmp/cacert.pem' + // sh 'echo $SSL_CERT_FILE' + withEnv(['SSL_CERT_FILE=/tmp/cacert.pem']) { + 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' + 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') {