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

           
           
           
  • 相关阅读:
    字串变换
    单词接龙
    二叉搜索树
    搜索专题(未完)
    单调栈
    单调队列练习(切蛋糕&好消息,坏消息)
    队列专题
    滑动窗口/【模板】单调队列
    Linux下如何查看硬件信息?
    Git 居然可以用来跟女神聊天?
  • 原文地址:https://www.cnblogs.com/jesse1/p/12973860.html
Copyright © 2011-2022 走看看