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

injecting groovy Env variables - Exception not shown

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.609, EnvInject 1.92.1
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: