当前位置:   article > 正文

Jenkins与git的问题记录_status code 128: stdout: stderr: remote: the proje

status code 128: stdout: stderr: remote: the project you were looking for co

目录

 

X/XXXX/XXXX.git HEAD" returned status code 128:

Jenkins自动部署docker命令

 


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的开发者权限

Jenkins自动部署docker命令

  1. echo '================传输工程目录================'
  2. ssh root@testhost "[ -d /work/docker/"${JOB_NAME}" ] && rm -rf /work/docker/"${JOB_NAME}"/web/*.jar || mkdir -p /work/docker/"${JOB_NAME}
  3. scp ${WORKSPACE}/target/*.jar root@testhost:/work/docker/${JOB_NAME}/web/
  4. ssh root@testhost -tt << remotessh
  5. cd /work/docker/${JOB_NAME}/web/
  6. mv *.jar app.jar
  7. docker restart ${JOB_NAME} || docker run --name ${JOB_NAME} \
  8. -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} \
  9. --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 \
  10. -p xxxx:80 --net cdm-network --ip xxx.xx.xx.xxx cdm/cdm-dk-springboot \
  11. 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"
  12. exit
  13. remotessh
  14. echo '================结束远程启动================'

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/羊村懒王/article/detail/578217
推荐阅读
相关标签
  

闽ICP备14008679号