Often "Couldn't find any revision to build" hints that the definition of the branch to be built did not match any branches (or SHA1 hashes) in the repository. In this case, is b8494ff5d3176890e85f4450de84e7031b909130 a valid SHA1 hash in the repository you're trying to clone? That appears to be the only SHA1 hash that was trying to be built with this run of the job.
If the .git file is really a file (and not a directory), then that may indicate some other problem. Usually .git is a directory, and contains the history of the repository. I'm not a gerrit code review user, so I don't know details of gerrit configuration, but I'm reasonably confident there are many gerrit code review users running Jenkins. Mark Waite On Thu, Mar 31, 2016 at 6:31 AM Heidi Tseng <[email protected]> wrote: > I use git, gerrit, and jenkins as my CI system. > I can successfully push to gerrit ,review code on gerrit, and clone my > remote git repository to local computer, but now I'm not able to build on > jenkins. > > git and gerrit were installed on unbuntu, and jenkins was installed on > windows (w7). > > Here is my Console Output: > Retriggered by user jenkinsw for Gerrit: http://10.10.55.34:8082/8 建置中 > 工作區 C:\Program Files (x86)\Jenkins\jobs\testw\workspace C:\Program > Files\Git\git-bash.exe rev-parse --is-inside-work-tree # timeout=10 > Fetching changes from the remote Git repository > C:\Program > Files\Git\git-bash.exe config remote.origin.url ssh:// > [email protected]:29418/test.git # timeout=10 Fetching upstream > changes from ssh://[email protected]:29418/test.git C:\Program > Files\Git\git-bash.exe --version # timeout=10 C:\Program > Files\Git\git-bash.exe --version # timeout=10 C:\Program > Files\Git\git-bash.exe fetch --tags ssh:// > [email protected]:29418/test.git refs/changes/08/8/1 C:\Program > Files\Git\git-bash.exe rev-parse > "b8494ff5d3176890e85f4450de84e7031b909130^{commit}" # timeout=10 ERROR: > Couldn't find any revision to build. Verify the repository and branch > configuration for this job. Finished: FAILURE > > And I found that there is only a ".git" file in the workspace in my server > computer! Shouldn't it clone what I push on gerrit? > Why is that? What should I do? or any else info I should put on? > > By the way, I tried exactly the same setting by using another jenkins > server which is installed on ubuntu, it works! > Why can't I use these setting when on window? > > hope you can help me!! thank you. > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/158e1c46-a3aa-472b-a358-524f722769d6%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-dev/158e1c46-a3aa-472b-a358-524f722769d6%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtGXOvmR2uOXcK_jafPqzVKMTn%3Dmc%2BPN_4ZEyUcCp%3DxYHw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
