Gitee拉取项目报错
问题描述
Gitee拉取可能会报错:
ERROR: Error cloning remote repo 'origin'
hudson.plugins.git.GitException: Command "git fetch --tags --progress https://gitee.com/iamlqw/gulimall.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stdout:
stderr: fatal: unable to access 'https://gitee.com/iamlqw/gulimall.git/': Could not resolve host: gitee.com
解决方法
连接不稳定,多拉取几次就可解决。
项目不全
问题描述
在拉取项目时会遇到一个很奇怪的问题就是运行Dockerfile到
ADD target/*.jar /app.jar
程序报错
Step 4/6 : ADD target/*.jar /app.jar
ADD failed: no source files were specified
script returned exit code 1
项目target目录找不到,如果向上查看日志会发现拉取项目时只拉取到了部分项目。
[INFO]
[INFO] gulimall 0.0.1-SNAPSHOT ............................ SUCCESS [ 49.443 s]
[INFO] gulimall-common .................................... SKIPPED
[INFO] gulimall-coupon .................................... SKIPPED
[INFO] gulimall-member .................................... SKIPPED
[INFO] gulimall-order ..................................... SKIPPED
[INFO] gulimall-product ................................... SKIPPED
[INFO] gulimall-ware ...................................... SKIPPED
[INFO] renren-fast 3.0.0 .................................. SKIPPED
[INFO] renren-generator 1.0.0 ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ----------------------------------------------------