Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 784
Tony Davis Avatar asked Feb 26 '14 04:02

Tony Davis


2 Answers

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).

like image 128
VonC Avatar answered Oct 21 '22 03:10

VonC


Please check your branch where repositories hosted either main or Master.

if repositories hosted in main,then Branches to build to */main .

if repositories hosted in master,then Branches to build to */master

like image 21
Rathinam Shanmugam Avatar answered Oct 21 '22 03:10

Rathinam Shanmugam