2021-12-10 09:48:02 -08:00

27 lines
454 B
Groovy

#!groovy
pipeline {
agent any
environment {
BRANCH_NAME=env.GIT_BRANCH.replace("origin/", "")
}
stages {
stage('Build') {
steps {
dir('messaging-app') {
sh '../mvnw clean verify'
}
}
}
stage('Publish Pacts') {
steps {
dir('messaging-app') {
sh '../mvnw pact:publish -Dpact.consumer.version=${GIT_COMMIT} -Dpact.tag=${BRANCH_NAME}'
}
}
}
}
}