diff --git a/Dockerfile b/Dockerfile index 9d6c52079..e420363e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN mvn package FROM openjdk:8-jre-alpine WORKDIR /app -RUN echo "$ENV_VAR" +RUN echo "$build_id" 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 diff --git a/Jenkinsfile b/Jenkinsfile index 21a4119d0..88a121155 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,7 +25,7 @@ pipeline { stages { stage('build started') { steps { - echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}" + echo "//////////////// build <<< ${env.BUILD_ID} >>> started ////////////////////" } } stage('build maven package') { @@ -53,14 +53,14 @@ pipeline { } stage ('print job summary') { steps { - println "----Git repo link: https://github.com/mnpatel0611/spring-petclinic" - println "------------------------------------------------" - println "--------------------INFO------------------------" - println "Docker image pushed to Dockerhub: mpatel011/spring-petclinic:$BUILD_NUMBER" - println "artifactory_url: $artifactory_url" - println "artifactory_repo: $artifactory_repo" - println "------------------------------------------------" - println "------------------------------------------------" + echo "----Git repo link: https://github.com/mnpatel0611/spring-petclinic" + echo "------------------------------------------------" + echo "--------------------INFO------------------------" + echo "Docker image pushed to Dockerhub: mpatel011/spring-petclinic:$BUILD_NUMBER" + echo "artifactory_url: $artifactory_url" + echo "artifactory_repo: $artifactory_repo" + echo "------------------------------------------------" + echo "------------------------------------------------" } } }