当从jenkins构建一个git项目时,它显示一个错误,就像找不到任何要修改的修订 [英] While building a git project from jenkins it shows an error like couldn't find any revision to build

查看:913
本文介绍了当从jenkins构建一个git项目时,它显示一个错误,就像找不到任何要修改的修订的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试通过jenkins构建一个git项目时,它给出了一个错误
'错误:找不到任何修订版本。验证此作业的存储库和分支配置。
完成:FAILURE'
这个错误的含义是什么,我应该怎么做才能删除它?

While trying to build a git project through jenkins it gives an error 'ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job. Finished: FAILURE' What does this error means and what should I do to remove it?

推荐答案

我确认:一个空的回购没有头,没有分支。我在为什么需要显式推送一个新分支?中提到这一点

I confirm: an empty repo has no HEAD, and no branch. I mention this in "Why do I need to explicitly push a new branch?"

这意味着Jenkins,一旦回购被克隆将无法检出分支(因为目前还没有)。

That means Jenkins, once the repo is cloned won't be able to checkout a branch (since there is none yet).

这篇关于当从jenkins构建一个git项目时,它显示一个错误,就像找不到任何要修改的修订的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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