Hi,
I checked the new version. The trigger now definitely runs on the master, the corresponding messages are printed. But it still ends with "[ERROR] - Polling error", unfortunately it prints neither the exception or the stack trace to the log.
I then reviewed the xtrigger source code and noticed that the method that prints the stack trace is only printing the Exception message and the stack trace goes to System.err.
I then opened the servlet container's (winstones) output and found the root cause:
So the following things have to be checked:
- What causes the NPE (maybe the EnvVarsResolver also uses the Node, which is offline). I run the script as system script - why is any node environment involved?
- Fix the logging in the XTrigger lib to be more informative on unexpected Exceptions.
Uwe
Please let me know your scripttrigger Jenkins plugin version and your EnvInject Jenkins plugin version?
Thanks