master- Sync Repo

This commit is contained in:
Mali Bayhan
2021-12-10 09:58:35 -08:00
parent 99e512596a
commit e9efe1ab8f
12 changed files with 15 additions and 72 deletions

View File

@@ -1,24 +1,31 @@
#!groovy
pipeline {
def MAVEN_IMAGE = 'maven:3.8.2-openjdk-11-slim'
agent any
pipeline {
// agent any
agent {
docker {
image "${MAVEN_IMAGE}"
}
}
environment {
BRANCH_NAME=env.GIT_BRANCH.replace("origin/", "")
BRANCH_NAME = env.GIT_BRANCH.replace('origin/', '')
}
stages {
stage('Build') {
steps {
dir('messaging-app') {
sh '../mvnw clean verify'
sh '../mvnw clean verify'
}
}
}
stage('Publish Pacts') {
steps {
dir('messaging-app') {
sh '../mvnw pact:publish -Dpact.consumer.version=${GIT_COMMIT} -Dpact.tag=${BRANCH_NAME}'
sh '../mvnw pact:publish -Dpact.consumer.version=${GIT_COMMIT} -Dpact.tag=${BRANCH_NAME}'
}
}
}
@@ -40,5 +47,4 @@ pipeline {
}
}
}
}
}