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

查看:980
本文介绍了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

推荐答案

我在此花了很长时间。上面的评论如果我离开这个领域的空白就像一个魅力。在SCM中:

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天全站免登陆