Issue Type: Bug Bug
Affects Versions: current
Assignee: Unassigned
Components: core
Created: 15/Feb/13 6:09 PM
Description:

Trying to abourt a build by throwing Run.RunnerAbortedException() in a RunListener.onStarted().
This used to work in older version 1.466.
Use case: I want to enforce certain conventions in all the jobs. If a job doesn't follow the convention, it will always fail. This gives job owners a natural incentive to adhere to the convention.

RunListener.fireStarted() seems to eat any exception (by just reporting it):
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/listeners/RunListener.java#L198

Run.execute() never sees the exception:
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/Run.java#L1574

Seems like a bug to me. RunListener.fireStarted() should somehow rethrow these exceptions.

Environment: Linux
Project: Jenkins
Priority: Critical Critical
Reporter: Max Spring
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