-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: envinject-plugin
-
Labels:None
-
Environment:Jenkins 1.609, EnvInject 1.92.1
-
Similar Issues:
Whenever an exception comes up using *.groovy code to "inject environment variables to the build process", the exception and it´s message/stacktrace is not shown in the console / log:
Only this line can be seen:
[EnvInject] - [ERROR] - [EnvInject] - [ERROR] - Problems occurs on injecting env vars as a build wrap: null
The code to reproduce this looks for example just like:
def map = [ myKey: "myValue" ] // Exceptiion will NOT be reported map.createException() return map
See also the attached file for a sample job.
Please report the exception, so analyzing the problem would be much easier.
- links to
Hoping this one gets solved soon.
It is a extremely tedious process, debugging script that shows no errors, not even exception handling.
I have need to inject Env Vars in order to use them as macros with the Build Name Setter plugin.
I have to perform the SCM get, then parse a well known file that maintains the major and minor version number, retrieve those numbers using groovy and set the build description to show the software version that was built.
During the writing of such a script in groovy, which took me 3 days of arduous trial and error, not being able to differentiate between syntax errors or logic errors during testing of the script was terribly frustrating.