Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# docker-Java-kubernetes-project
Deploying Java Applications with Docker and Kubernetes
Deploying Java Application with Docker and Kubernetes

Credit: https://github.com/danielbryantuk/oreilly-docker-java-shopping/
22 changes: 22 additions & 0 deletions jenkinsfiles/deployk8
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
properties([
parameters([
string(defaultValue: 'dev-uat', name: 'BRANCH'),
string(defaultValue: 'master', name: 'comp'),
string(defaultValue: 'service', name: 'action')
])
])

node {
cleanWs()

stage('Git Checkout') {
git branch: "${params.BRANCH}", credentialsId: 'myjenkins', url: 'git@github.com:pjitss/docker-Java-kubernetes-project.git'
}

stage('Build with Maven') {
def mvnHome = tool 'maven'
dir('shopfront') {
sh "${mvnHome}/bin/mvn clean"
}
}
}