Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 13/Apr/13 3:16 PM
Description:

java -jar jenkins-cli.jar build -s currently-disabled-job throws an error:

java.lang.NullPointerException
        at hudson.cli.BuildCommand.run(BuildCommand.java:135)

The reason is that AbstractProject.scheduleBuild2 can return null, though it is not yet marked @CheckForNull.

The CLI command should instead fail with a polite message saying that a build could not be scheduled. (The project being disabled is the most likely cause, though there may be others as well.)

Environment: 1.480.3
Project: Jenkins
Labels: cli exception
Priority: Minor Minor
Reporter: Jesse Glick
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to