mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
Jenkinsfile_DB
This commit is contained in:
parent
e6274162a1
commit
b694f3bac2
2 changed files with 19 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Use an official Maven runtime as a parent image
|
||||
FROM maven:3.8.4-openjdk-17-slim AS build
|
||||
|
||||
# Set the working directory in the container
|
||||
WORKDIR /app
|
||||
|
||||
# Copy the compiled JAR file from the build stage
|
||||
COPY target/*.jar /app/petclinic.jar
|
||||
|
||||
# Specify the command to run on container start
|
||||
CMD ["java", "-jar", "petclinic.jar"]
|
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
|
@ -19,6 +19,14 @@ pipeline {
|
|||
}
|
||||
|
||||
}
|
||||
stage('Build a Docker Image') {
|
||||
steps {
|
||||
// Build a Docker image
|
||||
script {
|
||||
docker.build('petclinic:auto')
|
||||
}
|
||||
}
|
||||
}
|
||||
stage ('Archive test results') {
|
||||
steps {
|
||||
//Archive the test results
|
||||
|
|
Loading…
Reference in a new issue