diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..525571bad --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM anapsix/alpine-java +COPY /target/spring-petclinic-1.5.1.jar /home/spring-petclinic-1.5.1.jar +CMD ["java","-jar","/home/spring-petclinic-1.5.1.jar"] \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..a8d3131a3 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,16 @@ +#!groovy +pipeline { + agent none + stages { + stage('Maven Install') { + agent { + docker { + image 'maven:3.5.0' + } + } + steps { + sh 'mvn clean install' + } + } + } + } \ No newline at end of file