Skip to content

flouis1/spring-petclinic-jenkins

 
 

Repository files navigation

Build and test petclinic container

Setup jenkins

Version

2.332.3

Plugins

List of plugin used:

  • GitHub plugin (github): 1.34.3
  • Docker plugin (docker-plugin): 1.2.9
  • Artifactory Plugin (artifactory): 3.16.2
  • docker-build-step (docker-build-step): 2.8
  • Blue Ocean (blueocean): 1.25.5

Actifactory setup

To configure your JFrog Platform instance Use this Documentation

Jenkins Pipeline

Configure the Source Code Manager(SCM)

image

Configure the Script path

image

Pipeline

image

Docker config

Dockerfile

FROM openjdk:19-jdk-alpine3.15
EXPOSE 8080
COPY target/*.jar /spring_built.jar
CMD ["java","-jar","/spring_built.jar"]

Use the docker image

docker run -d -p 8080:8080 flouis1.jfrog.io/default-docker-local/spring-petclinic:latest

About

A sample Spring-based application with jenkins

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 65.4%
  • Java 26.7%
  • HTML 5.4%
  • SCSS 2.5%