stderr: error: unable to resolve reference refs/remotes/origin/xx/20231129: ??? 来自http://192.168.0.xx:6452/xxxxx/xxxx
! [新分支] hotfix/20231129 -> origin/xxx/20231129 (不能更新本地引用
error: 一些本地引用不能被更新尝试运行
git remote prune http://192.168.0.xx:6452/xxxxx/xxxx.git’ 来删除旧的、有冲突的分支

ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from http://192.168.0.xx:6452/xxx-xx/xx-xx.git
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:996)
	at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1237)
	at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1297)
	at hudson.scm.SCM.checkout(SCM.java:505)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1206)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:637)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:509)
	at hudson.model.Run.execute(Run.java:1907)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	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 http://192.168.0.xx:6452/xx-xx/xx-xx.git +refs/heads/*:refs/remotes/origin/*" returned status code 1:
stdout: 
stderr: error: unable to resolve reference refs/remotes/origin/xxx/20231129: ????
来自 http://192.168.0.231:64280/paltform-web/organization-platform
 ! [新分支]          xxx/20231129 -> origin/xx/20231129  (不能更新本地引用error: 一些本地引用不能被更新尝试运行
 'git remote prune http://192.168.0.xx:6452/xx-xx/xx-xx.git' 来删除旧的、有冲突的分支

	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:2051)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$500(CliGitAPIImpl.java:84)
	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:573)
	at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:994)
	... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE

上面提示
无法解析当前分支,同时还建议尝试运行 git remote prune 命令删除旧的、有冲突的分支。
使用命令: git remote prune origin

 git remote prune origin
修剪 origin
URL:http://192.168.0.xx:6452/xxx/xxx-xx.git
 * [删除] origin/release/20230711
 * [删除] origin/release/20230823
 * [删除] origin/release/20230921
 * [删除] origin/release/20230927
 * [删除] origin/release/20231012
 * [已删除] origin/release/20231016
 * [已删除] origin/release/20231018
 * [已删除] origin/release/20231020
 * [已删除] origin/release/20231024
 * [已删除] origin/release/20231103
 * [已删除] origin/release/20231108
 * [已删除] origin/release/20231113
 * [已删除] origin/release/20231116
 * [已删除] origin/release/20231123

———-end

原文地址:https://blog.csdn.net/oToyix/article/details/134682594

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_27852.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除!

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注