master- Sync Repo
This commit is contained in:
27
jenkins/without-cd/Jenkinsfile-build
Normal file
27
jenkins/without-cd/Jenkinsfile-build
Normal file
@@ -0,0 +1,27 @@
|
||||
#!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}'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user