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

2017-01-22 Thread Adakar
, 22 stycznia 2017 03:05:45 UTC+1 użytkownik Jesse Glick napisał: > > On Fri, Jan 20, 2017 at 11:48 AM, Adakar <jaku...@gmail.com > > wrote: > > how to get current Stage name inside the > > SimpleBuildStep.perform(Run run, FilePath workspace, Launcher > launcher, &g

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

2017-01-20 Thread Adakar
tp://javadoc.jenkins-ci.org/hudson/model/TaskListener.html> listener)method? Best Regards, Adakar -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it,

Re: Check if agent is running as a service

2019-12-04 Thread Adakar
I wonder if there is a Jenkins Java API to get information about the name or if the agent was started as a service? So far I found that the plugin sees the WINSW_SERVICE_ID env variable when the agent is running as a service but I'm not sure if this check is reliable and sufficient. BR, Adakar W dniu

Check if agent is running as a service

2019-12-03 Thread Adakar
Hi There :) I'm working on a Jenkins plugin. I'm looking for a way to check if the Jenkins agent is running as a Windows service. So far my idea is to check if the WINSW_SERVICE_ID is set. Is there any other way? Any suggestions are highly appreciated :) BR, Adakar -- You received

Re: Check if agent is running as a service

2019-12-06 Thread Adakar
if it is a service or not might still be useful for more detailed output. W dniu czwartek, 5 grudnia 2019 11:57:53 UTC+1 użytkownik Daniel Beck napisał: > > > > On Thu, Dec 5, 2019 at 11:26 AM Adakar > > wrote: > >> My intention is to customize a plugin behavior based on the fact

Re: Check if agent is running as a service

2019-12-05 Thread Adakar
gt; On 04.12.2019 15:46, Jonathan Mackenzie wrote: > > Yeah you can also use > > C:\WINDOWS\system32>net start | findstr "Jen" >Jenkins > > C:\WINDOWS\system32> > > but it sounds to me like you have a wider use case here. Maybe you'd like > to explain