zoukankan      html  css  js  c++  java
  • 持续集成常见异常及排除方案

    场景 异常 异常原因 排除异常方案
    jenkins Failed to connect to repository:Error performing command:git ls-remote -h git@**** HEAD jenkins服务器中,未安装git,不能执行相关命令 核实是git命令没装,还是环境变量没配置好,没安装的话,使用yum install git,进行安装。否则查看环境变量是否设置
    jenkins+gitlab Failed to connect to repository : Command "git ls-remote -h git@192.168.234.140:***HEAD" returned status code 128:
    stdout:
    stderr: Host key verification failed.
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
    jenkins的服务器,和要访问的gitlab服务器未进行ssh认证或者认证不成功

    在jenkins服务器中,使用ssh-keygen -t rsa,命令获取ssh密钥对,

    方式一,

    在gitlab管理页面中,添加ssh认证。如果这种方式没能生效,使用

    方式二

    在jenkins进行源码url录入的时候,添加一个Credentials,把密钥对中的私钥,拿过来,当前使用的是root用户可以命名为root。添加完成,选定

           
           
           
  • 相关阅读:
    JAVA7/8中的HashMap和ConrrentMap
    Redis
    SpringBoot
    JAVA反射优化
    spring多模块项目手动整合
    spring事物与传播行为
    [pixhawk笔记]7-MAVLink添加自定义消息
    [pixhawk笔记]6-uORB流程及关键函数解析
    [pixhawk笔记]5-uORB消息传递
    [pixhawk笔记]4-如何写一个简单的应用程序
  • 原文地址:https://www.cnblogs.com/shengjie1/p/12973860.html
Copyright © 2011-2022 走看看