While building a git project from jenkins it shows an error like couldn't find any revision to build

我只是一个虾纸丫 提交于 2019-12-22 08:06:38

问题


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?


回答1:


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?"

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



来源:https://stackoverflow.com/questions/22031862/while-building-a-git-project-from-jenkins-it-shows-an-error-like-couldnt-find-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!