使用jenkins构建工程时报错

[EnvInject] - Loading node environment variables.
Building in workspace /data/jenkins/workspace/project-name> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository> git config remote.origin.url ssh://git@gitlab.xx.domain:10022/project/project-name.git # timeout=10
Fetching upstream changes from ssh://git@gitlab.xx.domain:10022/project/project-name.git> git --version # timeout=10
using GIT_SSH to set credentials deploy-key> git fetch --tags --progress ssh://git@gitlab.xx.domain:10022/project/project-name.git +refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from ssh://git@gitlab.xx.domain:10022/project/project-name.gitat hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:825)at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1092)at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1123)at hudson.scm.SCM.checkout(SCM.java:495)at hudson.model.AbstractProject.checkout(AbstractProject.java:1202)at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)at hudson.model.Run.execute(Run.java:1727)at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)at hudson.model.ResourceController.execute(ResourceController.java:97)at hudson.model.Executor.run(Executor.java:429)
Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress ssh://git@gitlab.xx.domain:10022/project/project-name.git +refs/heads/*:refs/remotes/origin/*" returned status code 1:
stdout:
stderr: error: there are still refs under 'refs/remotes/origin/dev'
From ssh://gitlab.xx.domain:10022/project/project-name! [new branch]      dev        -> origin/dev  (unable to update local ref)4f5b2e5..969713f  master     -> origin/master4f5b2e5..969713f  test       -> origin/testat org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1970)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1689)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:71)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:380)at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:823)... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE

删除/data/jenkins/workspace/project-name后重新构建

hudson.plugins.git.GitException相关推荐

  1. Caused by: hudson.plugins.git.GitException: Command “git fetch --tags --progress -- https://github.

    一.问题描述: 由于最近一直在搞java开发,没怎么搞cicd了,突然想搞搞自己的项目,所以跑了一下jenkins,却发现原来搭好的job执行失败,GitHub上面的代码拉不下来 ERROR: Err ...

  2. jenkins报错hudson.plugins.git.GitException: Could not init /root/.jenkins/workspace/DeployOrder/order

    运行Jenkins部署任务 gblfy 2019-05-21 14:08:51  1881  收藏 分类专栏: Jenkins 版权 一.运行Jenkins部署任务 1. 执行Jenkins部署任务 ...

  3. jenkins构建时git报错:hudson.plugins.git.GitException: Failed to fetch from

    问题: jenkins拉取远程代码构建git报错:hudson.plugins.git.GitException: Failed to fetch from 拉不到远程分支 提示信息如下 ERROR: ...

  4. jenkins构建:ERROR: Error fetching remote repo ‘origin‘(hudson.plugins.git.GitException/does not point)

    [EnvInject] - Loading node environment variables. 构建中 在工作空间 /Users/jenkins/workspace/XXX 中> git r ...

  5. Jenkins构建时报错 GitERROR: Error cloning remote repo 'origin' hudson.plugins.git.GitException

    --昨夜西风凋碧树,独上高楼,望尽天涯路 Jenkins + GitLab持续集成时遇到如下错误: ERROR: Error cloning remote repo 'origin' hudson.p ...

  6. Jenkins+GitHub报错hudson.plugins.git.GitException: Failed to fetch from GitHub 443

    偶然?总是? 在配置 源码管理的时候 使用https 进行代码的下载 配置的是用户名和密码 但是在执行构建的时候,总是会报错 443,但是偶尔也会有几次成功下载的,所以就很奇怪!!!!!!!!!! f ...

  7. git.exe init#timeout = 10错误:克隆远程repo'origin'时出错hudson.plugins.git

    用Jenkins自动化搭建测试环境,Jenkins构建任务 关键异常抓取 git.exe init#timeout = 10错误:克隆远程repo'origin'时出错hudson.plugins.g ...

  8. linux git hudson,如何使用SSH密钥配置Hudson和git插件

    我的Hudson(连续集成系统)的git插件在Tomcat Windows服务上运行.已安装msysgit,并且msysgit bin目录位于路径中.已安装PuTTY / Pageant / plin ...

  9. Jenkins无法启动:com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy

    问题描述: Jenkins重启后无法启动提示:Please wait while Jenkins is getting ready to work...(Jenkins正在准备工作,请稍后...) 问 ...

最新文章

  1. 翻译机之后,搜狗再推智能硬件产品录音笔
  2. 【BZOJ】1013 [JSOI2008]球形空间产生器sphere
  3. 虚拟化--图解交互式方式安装ESXi_5.0的过程
  4. 京东自建数据中心核心技术解密——运营管理篇
  5. java中的JDBC用户管理系统_Java+JDBC学生信息管理系统
  6. Copy ArrayList的四种方式
  7. java连接hbase_HBase实战 | 05405.15.0Spark2使用HBaseSpark访问HBase
  8. JAVA并发编程的挑战
  9. pytorch---tensor.view()
  10. Python连接SQL Server数据获取2
  11. HTML:实现旋转地球特效
  12. 20121214收藏
  13. 小米蓝牙耳机airdots青春版双耳模式
  14. 80psi等于多少kpa_1公斤的气压是多少KPA?
  15. 一个项目从立项到终结
  16. EFS加密文件重装系统无法打开图标带小锁显示绿色解密
  17. JDBC SSL连接MySQL
  18. 程序员代码中的希腊字母表示
  19. 如何安装UOS操作系统
  20. 2017年8月14日套题记录 | 普及组

热门文章

  1. ​GIS方向考研简述
  2. python执行sql 语句
  3. FTTB+NAT+DHCP+pppoe+CBAC+*** client+Authentication AAA
  4. setcontext
  5. 7.3 有源滤波电路(1)
  6. Arduino/stm32 智能小车设计(二)
  7. 论文写作 1: 学术论文的基本概念
  8. 内网穿透工具---frp使用教程
  9. Linux LCD 驱动
  10. 电脑开机为什么会出现黑屏