This commit is contained in:
Maharshi Patel 2021-01-10 17:21:29 -08:00
parent 1830440738
commit 80e9ecfe18
2 changed files with 2 additions and 0 deletions

View file

@ -10,6 +10,7 @@ RUN mvn package
FROM openjdk:8-jre-alpine
WORKDIR /app
RUN echo "$ENV_VAR"
COPY --from=build-env /app/target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar ./spring-petclinic.jar
COPY --from=build-env /app/target/spring-petclinic-2.4.0.BUILD-SNAPSHOT.jar ./spring-petclinic-2.4.0.BUILD-${env.BUILD_ID}.jar
RUN apk update && apk --no-cache add curl

1
Jenkinsfile vendored
View file

@ -13,6 +13,7 @@ pipeline {
environment {
artifactory_url="https://petclinic.jfrog.io/artifactory"
artifactory_repo="spring-petclinic"
build_id="$BUILD_NUMBER"
}
/////////////////////////////////////////////////////////////////////
// END