Jenkinsfile_DB

This commit is contained in:
vishnu1411 2023-12-16 14:12:41 -05:00
parent e6274162a1
commit b694f3bac2
2 changed files with 19 additions and 0 deletions

11
Dockerfile Normal file
View 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
View file

@ -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