master- Sync Repo
This commit is contained in:
parent
99e512596a
commit
e9efe1ab8f
14
jenkins/cd/Jenkinsfile
vendored
14
jenkins/cd/Jenkinsfile
vendored
@ -1,10 +1,17 @@
|
|||||||
#!groovy
|
#!groovy
|
||||||
pipeline {
|
def MAVEN_IMAGE = 'maven:3.8.2-openjdk-11-slim'
|
||||||
|
|
||||||
agent any
|
pipeline {
|
||||||
|
// agent any
|
||||||
|
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image "${MAVEN_IMAGE}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
BRANCH_NAME=env.GIT_BRANCH.replace("origin/", "")
|
BRANCH_NAME = env.GIT_BRANCH.replace('origin/', '')
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
@ -40,5 +47,4 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1,27 +0,0 @@
|
|||||||
#!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}'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@ -1,38 +0,0 @@
|
|||||||
#!groovy
|
|
||||||
pipeline {
|
|
||||||
|
|
||||||
agent any
|
|
||||||
|
|
||||||
parameters {
|
|
||||||
string(name: 'GIT_COMMIT', defaultValue: '', description: 'Version (a.k.a. git commit) to deploy')
|
|
||||||
}
|
|
||||||
|
|
||||||
options {
|
|
||||||
skipDefaultCheckout()
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
|
||||||
stage('Check Pact Verifications') {
|
|
||||||
steps {
|
|
||||||
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 messaging-app -b http://pact_broker -e ${GIT_COMMIT} --to prod"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Deploy') {
|
|
||||||
steps {
|
|
||||||
echo 'Deploying to prod now...'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage('Tag Pact') {
|
|
||||||
steps {
|
|
||||||
dir('pact/bin') {
|
|
||||||
sh "./pact-broker create-version-tag -a messaging-app -b http://pact_broker -e ${GIT_COMMIT} -t prod"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
2
target/classes/application.yml
Normal file
2
target/classes/application.yml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
user-service:
|
||||||
|
base-url: "http://localhost:8090"
|
||||||
BIN
target/classes/de/kreuzwerker/cdc/messagingapp/Friend.class
Normal file
BIN
target/classes/de/kreuzwerker/cdc/messagingapp/Friend.class
Normal file
Binary file not shown.
Binary file not shown.
BIN
target/classes/de/kreuzwerker/cdc/messagingapp/User.class
Normal file
BIN
target/classes/de/kreuzwerker/cdc/messagingapp/User.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user