A low tech workaround for this would be using node labels to define which nodes have the graphical environment and which ones don't.
On Fri, Dec 6, 2019 at 4:05 AM Adakar <[email protected]> wrote: > > Hi Daniel, > > Thanks for the explanation and pointing this out :) > > Bingo! The access to a display is mandatory for the plugin to be executed > succesfully. That's exactly the reason why I wanted the plugin to stop the > execution if the agent is running as a service. Although information 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 <[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/a1563dfd-f5f7-4e8a-9cc5-c0b46c322e82%40googlegroups.com. -- Matt Sicker Senior Software Engineer, CloudBees -- 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/CAEot4oyOOwhrLv%2BzRBa3WiX2tKQXHmcHt6ubtHQG_rfM-Css9A%40mail.gmail.com.
