Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22319

Referencing a purely local git branch breaks checkout

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • git-plugin
    • None

      After upgrading from Git plugin 2.0.1 to 2.0.4 all existing builds on our installation fail. Downgrading is the only way to restore system function.

      The configured branch for each job is correct and does exist locally on the build nodes.

      An example of a failed build is as follows:

      Started by remote host 127.0.0.1 with note: Triggered by commit
      Building remotely on LinuxSlave - 1 (PACKAGER LINBUILDER) in workspace /srv/jenkins/workspace/skrooge_master
      Running Prebuild steps
      [skrooge_master] $ /bin/sh -xe /tmp/hudson1825262203643394596.sh
      + /home/jenkins/scripts/setup-env.sh

      Preparing to perform KDE Continuous Integration build
      == Setting Up Sources

      From git://anongit.kde.org/skrooge
      b59ae7b..a449a3e master -> origin/master
      Branch jenkins set up to track remote branch master from origin.

      == Cleaning Source Tree

      HEAD is now at b59ae7b feature: Better date filtering in operation page
      Removing build/
      Removing install/
      Removing tests/input/kde/
      Removing tests/output/
      Removing tests/scripts/init.sh
      Removing tests/sikuli/shared.sikuli/shared$py.class

      Success build forhudson.tasks.Shell@3420a61b
      Fetching changes from the remote Git repository
      Fetching upstream changes from git://anongit.kde.org/skrooge.git
      ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
      [WARNINGS] Skipping publisher since build result is FAILURE
      Skipping Cobertura coverage report as build was not UNSTABLE or better ...
      Recording test results
      IRC notifier plugin: Sending notification to: #kde-builds
      Finished: FAILURE

            ndeloof Nicolas De Loof
            bcooksley Ben Cooksley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: