Git PullRequest 作业失败.找不到任何要构建的修订版.验证此作业的存储库和分支配置 [英] Git PullRequest job failed. Couldn't find any revision to build. Verify the repository and branch configuration for this job

查看:26
本文介绍了Git PullRequest 作业失败.找不到任何要构建的修订版.验证此作业的存储库和分支配置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我的 pullrequest 作业失败,输出如下:

Yesterday my pullrequest jobs failed with the following output:

11:07:41  > git rev-parse origin/${sha1}^{commit}
11:07:41  > git rev-parse ${sha1}^{commit}
11:07:41 ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

我进行了调查,发现在财产 ${sha1} 中什么也没有.当我将绝对路径粘贴到像 pr/341/merge 这样的拉取请求构建器而不是 ${sha1} 时,构建工作.它可以是什么?

I have made an investigation and saw that in property ${sha1} there was nothing. When i paste an absolute path to pull request builder like pr/341/merge instead of ${sha1} the build works. What it can be?

Git 客户端插件1.9.0

Git Client Plugin 1.9.0

GitHub API 插件1.44

GitHub API Plugin 1.44

推荐答案

我在这上面花了很长时间.上面的评论如果我将此字段留空"就像一个魅力.在单片机中:
1) 选择 Git
2) 名称:origin
3) Refspec: +refs/pull/*:refs/remotes/origin/pr/*
4)要建的分支:留空

I spent a long time on this. The above comment "if I leave this field blank" worked like a charm. In SCM:
1) select Git
2) Name: origin
3) Refspec: +refs/pull/*:refs/remotes/origin/pr/*
4) Branches to build : leave blank

这解决了上述错误.

这篇关于Git PullRequest 作业失败.找不到任何要构建的修订版.验证此作业的存储库和分支配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆