Current Stage name inside the SimpleBuildStep.perform(...) method?

2017-01-20 Thread Adakar
Hi All! I'm refactoring jenkins plugin to make it callable from Pipeline jobs. Do you have any suggestion how to get current Stage name inside the SimpleBuildStep.*perform

Re: Current Stage name inside the SimpleBuildStep.perform(...) method?

2017-01-21 Thread Jesse Glick
On Fri, Jan 20, 2017 at 11:48 AM, Adakar wrote: > how to get current Stage name inside the > SimpleBuildStep.perform(Run run, FilePath workspace, Launcher launcher, > TaskListener listener)method? You cannot. If you switched from `SimpleBuildStep` to a full-fledged `Step`, you could get your `Fl

Re: Current Stage name inside the SimpleBuildStep.perform(...) method?

2017-01-22 Thread Adakar
Thanks for answer! I need it for some logging purposes. Let's sey that each step call genetares a report and I need this information to distinguish which report was generated for which stage. If you have any suggestion how to handle this different way, I would be grateful. ; W dniu niedziela, 2

Re: Current Stage name inside the SimpleBuildStep.perform(...) method?

2017-01-23 Thread 'Björn Pedersen' via Jenkins Developers
(comments inline) Am Sonntag, 22. Januar 2017 03:05:45 UTC+1 schrieb Jesse Glick: > > On Fri, Jan 20, 2017 at 11:48 AM, Adakar > > wrote: > > how to get current Stage name inside the > > SimpleBuildStep.perform(Run run, FilePath workspace, Launcher > launcher, > > TaskListener listener)method

Re: Current Stage name inside the SimpleBuildStep.perform(...) method?

2017-01-23 Thread Jesse Glick
On Mon, Jan 23, 2017 at 4:13 AM, 'Björn Pedersen' via Jenkins Developers wrote: > It should report back the status and timing of parts of a job in a pipeline > run, possibly setting a link > to the relevant part of the log as well. https://issues.jenkins-ci.org/browse/JENKINS-28119 -- You recei

Re: Current Stage name inside the SimpleBuildStep.perform(...) method?

2017-01-23 Thread Jesse Glick
On Sun, Jan 22, 2017 at 6:06 AM, Adakar wrote: > Let's sey that each step call genetares > a report and I need this information to distinguish which report was > generated for which stage. There is not a general system for this yet, so better not to try. Cf.: https://issues.jenkins-ci.org/browse/