Re: Listen for discarding build

2014-08-26 Thread Dzmitry Kashlach
I want my plugin to do the following: 1. Start performance test as a build step; 2. If user cancels build(pressed red button with "x" near build link on UI) - stop test and free test resources. On Thursday, August 21, 2014 9:55:16 AM UTC+3, Dzmitry Kashlach wrote: > > Hi all, > > I'm developing

Re: Listen for discarding build

2014-08-26 Thread Baptiste Mathus
Discard or cancel? From what you say, seems like there's a confusion somewhere I guess. 2014-08-26 14:41 GMT+02:00 Dzmitry Kashlach : > I've met with one more difficulty. > I've extended RunListener in my project to implement onDeleted() method. > I've created an instance of my listener while st

Re: Listen for discarding build

2014-08-26 Thread Dzmitry Kashlach
I've met with one more difficulty. I've extended RunListener in my project to implement onDeleted() method. I've created an instance of my listener while starting build. When I press "Stop" button on UI, nothing happens, e.g. IDE debugger does not enter onDeleted() method. What have I missed? Is t

Re: Listen for discarding build

2014-08-22 Thread Dzmitry Kashlach
Thanks, Daniel. On Thursday, August 21, 2014 9:55:16 AM UTC+3, Dzmitry Kashlach wrote: > > Hi all, > > I'm developing plugin for performance testing. > How can I know if user has discarded build? > I need this to finish test in case of discarding. > Is there any class like "BuildDiscardListener"(o

Re: Listen for discarding build

2014-08-21 Thread Daniel Beck
RunListener.onDeleted() On 21.08.2014, at 08:55, Dzmitry Kashlach wrote: > Hi all, > > I'm developing plugin for performance testing. > How can I know if user has discarded build? > I need this to finish test in case of discarding. > Is there any class like "BuildDiscardListener"(or something l

Listen for discarding build

2014-08-20 Thread Dzmitry Kashlach
Hi all, I'm developing plugin for performance testing. How can I know if user has discarded build? I need this to finish test in case of discarding. Is there any class like "BuildDiscardListener"(or something like that) in Jenkins API? Thanks in advance, Dzmitry. -- You re