git plugin reports uninformative error when reference not found

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When the Git SCM plugin cannot find the 'Branches to build' target or any ref to build, it reports a 'Nothing to do' error, which is not very helpful or informative.

      I'm attaching a one-line patch (ref-not-found.diff) that will change the error message to print the bad reference and more clearly indicate the problem.
      (This was applied to commit 4a538cbc06b4)

            Assignee:
            Andrew Bayer
            Reporter:
            bvakili
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: