Details
-
Type:
Improvement
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: git-plugin
-
Labels:None
-
Similar Issues:
Description
When the Git plugin fails, it gives the error "Nothing to do." This doesn't help diagnose the problem so much, particularly if it's something trivial that the user did (like put in an incorrect branch).
The error message could help users for the most trivial cases, like "Couldn't find anything to download from the Git repository. Did you get the URL or branch name right?" Obviously, this would be changed to list the cases where "Nothing to do" might be thrown
Attachments
Issue Links
- is duplicated by
-
JENKINS-8974 If trying to build a non-existent branch the error message is simply "ERROR: Nothing to do"
-
- Closed
-
-
JENKINS-8696 git plugin reports uninformative error when reference not found
-
- Closed
-
Code changed in jenkins
User: Andrew Bayer
Path:
src/main/java/hudson/plugins/git/GitSCM.java
http://jenkins-ci.org/commit/git-plugin/03372c0a86fd35835420a0818915a2b1e0fcecc0
Log:
[FIXED JENKINS-9339] Improved error message when no revision is found to build.