相关疑难解决方法(0)

Git PullRequest工作失败.找不到任何修改版本.验证此作业的存储库和分支配置

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

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.
Run Code Online (Sandbox Code Playgroud)

我已经进行了调查,发现在财产$ {sha1}中没有任何东西.当我粘贴一个绝对路径来拉取请求构建器,如pr/341/merge而不是$ {sha1}时,构建工作正常.它可以是什么?

Git客户端插件1.9.0

GitHub API插件1.44

git github pull-request jenkins

14
推荐指数
6
解决办法
3万
查看次数

Jenkins Git分支无法使用环境变量

伙计们,有一个配置作业的环境变量, BRANCH,但是当我尝试用它配置git scm时,控制台出现错误

Branch Specifier (blank for 'any') * / $ {BRANCH}

git rev-parse refs / remotes / origin / $ {BRANCH} ^ {commit}#timeout = 10 git rev-parse refs / remotes / origin / origin / $ {BRANCH} ^ {commit}#timeout = 10 git rev-parse origin / $ {BRANCH} ^ {commit}#timeout = 10错误:找不到要构建的任何修订。

我100%肯定git很好,分支存在。

jenkins

5
推荐指数
2
解决办法
4690
查看次数

标签 统计

jenkins ×2

git ×1

github ×1

pull-request ×1