Skip to content

Instantly share code, notes, and snippets.

@tienhieuD
Created April 26, 2021 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tienhieuD/45dd1404c79a5993f7db435e8bd03209 to your computer and use it in GitHub Desktop.
Save tienhieuD/45dd1404c79a5993f7db435e8bd03209 to your computer and use it in GitHub Desktop.
Running with gitlab-ci-multi-runner 1.9.5 (e8b9d54)
Using Shell executor...
Running on SCS...
Fetching changes...
Removing social_benefits/api/target/api.jar
Removing social_benefits/api/target/api.jar.original
Removing social_benefits/api/target/classes/log4j.properties
Removing social_benefits/api/target/classes/messages.properties
Removing social_benefits/api/target/classes/vn/
Removing social_benefits/api/target/generated-sources/
Removing social_benefits/api/target/maven-archiver/
Removing social_benefits/batch/target/
Removing social_benefits/core/target/
HEAD is now at d7ff9a1 Update .gitlab-ci.yml
From https://git.nissho-vn.com/ipdd/SocialBenefitsPlatform
d7ff9a1..36b8e3b master -> origin/master
Checking out 36b8e3bb as master...
$ echo "deploying app on 151"
deploying app on 151
$ cd deploy
$ chmod +x ./deploy.sh
$ ./deploy.sh -e
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] core
[INFO] api
[INFO] batch
[INFO] Social Benefit
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building core 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ core ---
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:resources (default-resources) @ core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 0 resource
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 79 source files to /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/core/target/classes
[INFO] /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/core/src/main/java/social_benefits/core/service/notification/NotificationService.java: /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/core/src/main/java/social_benefits/core/service/notification/NotificationService.java uses or overrides a deprecated API.
[INFO] /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/core/src/main/java/social_benefits/core/service/notification/NotificationService.java: Recompile with -Xlint:deprecation for details.
[INFO] /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/core/src/main/java/social_benefits/core/redis/service/RedisService.java: Some input files use unchecked or unsafe operations.
[INFO] /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/core/src/main/java/social_benefits/core/redis/service/RedisService.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-resources-plugin:3.2.0:testResources (default-testResources) @ core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] skip non existing resourceDirectory /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/core/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ core ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ core ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:3.2.0:jar (default-jar) @ core ---
[INFO] Building jar: /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/core/target/core.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building api 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ api ---
[INFO] Deleting /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/api/target
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 4 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 59 source files to /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/api/target/classes
[INFO] /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/api/src/main/java/vn/com/controller/MerchantVoucherDetailController.java: /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/api/src/main/java/vn/com/controller/MerchantVoucherDetailController.java uses unchecked or unsafe operations.
[INFO] /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/api/src/main/java/vn/com/controller/MerchantVoucherDetailController.java: Recompile with -Xlint:unchecked for details.
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/api/src/main/java/vn/com/controller/CompanyController.java:[52,5] missing return statement
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] core ............................................... SUCCESS [ 9.098 s]
[INFO] api ................................................ FAILURE [ 2.253 s]
[INFO] batch .............................................. SKIPPED
[INFO] Social Benefit ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.628 s
[INFO] Finished at: 2021-04-26T15:20:29+07:00
[INFO] Final Memory: 100M/565M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project api: Compilation failure
[ERROR] /home/gitlab-runner/builds/8265218d/0/ipdd/SocialBenefitsPlatform/social_benefits/api/src/main/java/vn/com/controller/CompanyController.java:[52,5] missing return statement
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :api
Building api
Sending build context to Docker daemon 17.93MB
Step 1/9 : FROM adoptopenjdk:8-jre-openj9
---> c7c5fe8d8f0b
Step 2/9 : LABEL Name=social-benefit-api Version=0.0.1
---> Using cache
---> ffd277da0915
Step 3/9 : EXPOSE 8089/tcp
---> Using cache
---> b05372bf6202
Step 4/9 : RUN mkdir /opt/app && mkdir /opt/app/config ;
---> Using cache
---> 6b9babd22554
Step 5/9 : COPY ./social_benefits/api/target/api.jar /opt/app
COPY failed: file not found in build context or excluded by .dockerignore: stat social_benefits/api/target/api.jar: file does not exist
Service 'api' failed to build
Total reclaimed space: 0B
$ ls -a
.
..
application_production.yml
DEPLOY_NOTE.md
deploy.sh
docker-compose.yml
Dockerfile.api
Dockerfile.logioserver
Dockerfile.logioserverfileinput
file.json
server.json
Build succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment