[JENKINS-16830] clarified the semantics
(03:21:10 PM) m2spring: kohsuke: BTW, what do you think about this Jira? https://issues.jenkins-ci.org/browse/JENKINS-16830 (03:21:13 PM) jenkins-admin: JENKINS-16830:RunnerAbortedException no longer workin in RunListener.onStartup() (Resolved) http://jenkins-ci.org/issue/16830 (03:23:01 PM) m2spring: kohsuke: The question is whether RunListener.onStart() is intended to be allowed to abort a build by throwing Run.RunnerAbortedException, or not. (03:23:18 PM) kohsuke: still reading (03:25:27 PM) kohsuke: m2spring: I can make it work for you (03:25:42 PM) kohsuke: I guess you want RunnerAbortedException to be a pass-through, right? (03:25:50 PM) m2spring: I'm using now RunListener.setupEnvironment(). (03:25:58 PM) m2spring: This works and makes also a lot of sense. (03:26:36 PM) m2spring: I can also see that not allowing onStart() to abort a build can make sense. (03:26:51 PM) m2spring: I just wanted to hear your take on this. (03:27:05 PM) kohsuke: kutzi is right that onStart() wasn't really intended to affect the build (03:27:15 PM) kohsuke: it really was meant for just notifying (03:27:33 PM) m2spring: Thanks for the clarification. (03:27:40 PM) kohsuke: but if this is important for someone, I'm OK with making it work. (03:27:53 PM) kohsuke: In this case it sounds like you are OK with the current state, so I'll leave it as WONTFIX (03:27:58 PM) m2spring: setupEnvironment() seems to be the right place. (03:28:05 PM) m2spring: Yes. Thanks :-) (03:28:18 PM) kohsuke: I'll mention that in setupEnvironment javadoc so that we know it's a committed semantics (03:28:28 PM) m2spring: Agreed.
Loading
Please register or sign in to comment