I use Groovy to insert variables into the build process using the EnvInject Plugin plugin:
https://wiki.jenkins-ci.org/display/JENKINS/EnvInject+Plugin
My script is saved in the "Groovy rated script" text area.
If the script works, everything is fine. But if some error occurs, I always get the same error message:
[EnvInject] - [ERROR] - [EnvInject] - [ERROR] - Problems occurs on injecting env vars as a build wrap: null
Is there a way to get the actual exception or even exception message?
source share