mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
1
This commit is contained in:
parent
56c0156585
commit
3d02e1b15c
3 changed files with 4 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
|||
target/*
|
||||
bin/*
|
||||
build/*
|
||||
.gradle/*
|
||||
|
@ -8,11 +9,11 @@ build/*
|
|||
.attach_pid*
|
||||
.idea
|
||||
*.iml
|
||||
/target
|
||||
.sts4-cache/
|
||||
.vscode
|
||||
_site/
|
||||
*.css
|
||||
!petclinic.css
|
||||
|
||||
zap-report/*
|
||||
.DS_Store
|
||||
|
|
|
@ -15,7 +15,7 @@ COPY src ./src
|
|||
RUN ./mvnw clean package -DskipTests
|
||||
|
||||
# Copy the JAR file to the app directory
|
||||
COPY /app/target/spring-petclinic-3.3.0-SNAPSHOT.jar app.jar
|
||||
COPY target/*.jar app.jar
|
||||
|
||||
# Run the jar file
|
||||
CMD ["java", "-jar", "app.jar"]
|
||||
|
|
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
|
@ -25,6 +25,7 @@ pipeline {
|
|||
echo "Docker Image built: ${dockerImage.id}"
|
||||
// Store the Docker image ID in the environment if needed across stages
|
||||
env.DOCKER_IMAGE_ID = dockerImage.id
|
||||
sh 'ls -la target/'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue