On Thu, Dec 5, 2019 at 11:26 AM Adakar <[email protected]> wrote:

> My intention is to customize a plugin behavior based on the fact if the
> agent is running as a service. If it does, it should stop the build. If
> not, the build should be continued. I simply want my plugin to stop builds
> which are executing on agents that are running as a Windows Service.
>

That looks a bit like an XY problem (http://xyproblem.info/), if so, it
would be helpful if you could provide additional context.

For example, if there's something preventing builds run from a Windows
service to be completed successfully (e.g. no desktop access) in your
environment, perhaps you can check for that directly rather than trying to
identify whether you're running as a service?

-- 
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, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAMo7PtJQi0c%2B7%2BwF7oHiJ8tDZc_6vhMpONWZvt0dPyoJ%2BBr2cw%40mail.gmail.com.

Reply via email to