赞
踩
目录
X/XXXX/XXXX.git HEAD" returned status code 128:
stdout:
stderr: remote: The project you were looking for could not be found.
fatal: repository 'http://git.XXXX.XX/XXXX/XXXX.git/' not found
git资源未找到
解决方法:增加 deploy的开发者权限
- echo '================传输工程目录================'
-
- ssh root@testhost "[ -d /work/docker/"${JOB_NAME}" ] && rm -rf /work/docker/"${JOB_NAME}"/web/*.jar || mkdir -p /work/docker/"${JOB_NAME}
-
- scp ${WORKSPACE}/target/*.jar root@testhost:/work/docker/${JOB_NAME}/web/
-
- ssh root@testhost -tt << remotessh
-
- cd /work/docker/${JOB_NAME}/web/
-
- mv *.jar app.jar
- docker restart ${JOB_NAME} || docker run --name ${JOB_NAME} \
- -d -v /work/docker/${JOB_NAME}/web/:/usr/cdm/web/ -v /work/docker/cdm-lib:/usr/cdm/lib -v /work/docker/${JOB_NAME}/logs:/tmp/logs -v /work/docker/${JOB_NAME}/data/static:/data/static --env-file /work/docker/env/.env-${JOB_NAME} \
- --link cdm-mysql:db --link cdm-redis:host-redis --add-host host-xxxx:xxx.xxx.xxx.xxxx --add-host host-xxxx:xxx.xxx.xxx.xxx --add-host host-xxx:127.0.0.1 \
- -p xxxx:80 --net cdm-network --ip xxx.xx.xx.xxx cdm/cdm-dk-springboot \
- sh -c "ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && java -Dloader.path=/usr/cdm/web/modules/,/usr/cdm/lib/,/usr/cdm/cdm/web/resources -jar -Xms64m -Xmx256m /usr/cdm/web/app.jar"
-
-
- exit
-
- remotessh
- echo '================结束远程启动================'
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。