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

git plugin reports uninformative error when reference not found

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      (any)
    • Similar Issues:

      Description

      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)

        Attachments

          Issue Links

            Activity

            bvakili bvakili created issue -
            abayer Andrew Bayer made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-9339 [ JENKINS-9339 ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 138840 ] JNJira + In-Review [ 204886 ]

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                bvakili bvakili
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: