Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36237

injecting groovy Env variables - Exception not shown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • envinject-plugin
    • None
    • Jenkins 1.609, EnvInject 1.92.1

      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.

            oleg_nenashev Oleg Nenashev
            torstenreinhard Torsten Reinhard
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: