master- Sync Repo
This commit is contained in:
parent
7430de4f86
commit
40e186f6b5
12
jenkins/cd/Jenkinsfile
vendored
12
jenkins/cd/Jenkinsfile
vendored
@ -1,12 +1,18 @@
|
||||
#!groovy
|
||||
def MAVEN_IMAGE = 'maven:3.8.2-openjdk-11-slim'
|
||||
|
||||
pipeline {
|
||||
agent any
|
||||
agent {
|
||||
docker {
|
||||
image "${MAVEN_IMAGE}"
|
||||
}
|
||||
}
|
||||
|
||||
stages {
|
||||
stage ('Build') {
|
||||
steps {
|
||||
dir('user-service') {
|
||||
sh '../mvnw clean verify ' +
|
||||
sh 'mvn clean verify ' +
|
||||
"-Dpact.provider.version=${GIT_COMMIT} " +
|
||||
'-Dpact.verifier.publishResults=true'
|
||||
}
|
||||
@ -17,7 +23,7 @@ pipeline {
|
||||
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 -a user-service -b http://pact_broker -e ${GIT_COMMIT}"
|
||||
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