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。添加完成,选定

           
           
           
  • 相关阅读:
    02.两数相加
    1480. 一维数组的动态和
    01. 两数之和
    67.二进制求和
    文献阅读(QoS-Aware Web Service Recommendation by Collaborative Filtering)
    服务计算---课程总结报告
    125. 验证回文串
    Docker 常用命令
    Docker 安装
    RESTful
  • 原文地址:https://www.cnblogs.com/jesse1/p/12973860.html
Copyright © 2011-2022 走看看