-- Drupal and Web Development

Notice: this post was last updated 3 years 29 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. :)

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h3>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.