玖叶教程网

前端编程开发入门

Jenkins系列之常见问题:adminhudson.plugins.git.GitException:

一、问题描述

Jenkins在构建时报错“Comand git fetch -tags --progress -prumne rigin +refs/heads/master:refs/remotes/origin/master"returmed status code 128.stdout:stderr: fatal: Couldn't find remote ref refs/heads/masterUnexpected end of command streall”

adminhudson.plugins.git.GitException: Comand git fetch -tags --progress -prumne rigin +refs/heads/master:refs/remotes/origin/master"returmed status code 128.stdout:stderr: fatal: Couldn't find remote ref refs/heads/master Unexpected end of command streall
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2681)at org.jenkinsci.plugins.gitclient.CliitAPIImpl.launchCommandWithCredentials(C1iGitAPIImol, java:2102)at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CiGitAPIImpl.java:86)
at org.jenkinsci.plugins.gitclient.CliGitAPIImp1$l.execute(CliGitAPIImpl.iava:624)at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:365)at jenkins.scm.api.SCMFileSystem.of(SCWFileSystem.java:197)at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:173)at org.jenkinsci.plugins.workflow. cps. CpsScmFlowDefinition. create(CpsScmFlowDefinition. java:114.at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.createCpsScmFlowDefinition.java:68)at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:309)at hudson.model.ResourceController.execute(ResourceController.java:100)at hudson.model.Executor.run(Executor.java:433)Finished: FAILURE
Workspaces

二、问题分析

经分析,根据错误堆栈的提升主要为jenkins进行远程拉取代码时异常,无法获取找到master分支,Couldn't find remote ref refs/heads/master

三、解决方案

在gitLab上对应项目上创建master分支后,重新构建即可

发表评论:

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言