-- Drupal and Web Development

Notice: this post was last updated 3 years 32 weeks ago so it might be outdated. Please be cautious before implementing any of suggestions herein.

Jenkins: Could not checkout null with start point

I got this problem all of a sudden with three projects:

  • I push commit 123456 to master
  • Jenkins gives me this error:

    Checking out Revision 123456 (origin/master) FATAL: Could not checkout null with start point 123456

For each project I logged into the jenkins server

sudo su jenkins
cd /var/lib/jenkins/workspace/myproject
git status
# Not currently on any branch.
nothing to commit (working directory clean)
git checkout master
git pull origin master

This worked for two of my projects. On the third, I got:

git checkout master
fatal: object 234567 is corrupted

I simply deleted the directory and re-cloned it from source, and it started working again

I just did this a few minutes ago, so I'll check in again tomorrow to see if the problem resurfaces.

Thanks man! It really helped.

Thanks man! It really helped. :)