I have a spring-boot application which uses Gitlab CI to build the artifacts.
I am using the following gitlab-ci.yml file configurations.
image: docker:latest services: - docker:dind variables: DOCKER_DRIVER: overlay stages: - build maven-build: image: maven:3-jdk-8 stage: build only: - master - staging - ci script: - mvn clean package -Dmaven.test.skip=true artifacts: paths: - target/*.jar
When I download the generated artifact and run the jar file, it shows the following error
This application has no explicit mapping for /error, so you are seeing this as a fallback. Wed Apr 05 13:20:00 IST 2017 There was an unexpected error (type=Not Found, status=404). /WEB-INF/pages/login.jsp
But no such error is thrown when I am packaging and running the jar in my local machine. The error only happens with the jar downloaded from the Gitlab pipeline