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

setenv variables not available to email-ext

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: email-ext-plugin
    • Labels:
      None
    • Environment:
      Hudson Setenv Plugin 1.1
      Hudson Email Extension Plugin 2.5
      hudson 1.346
    • Similar Issues:

      Description

      It seems like this should work after JENKINS-3605 was fixed so I followed the documented reference format as clarified in JENKINS-2413 and JENKINS-5322 (i.e. ${ENV, var="VERSION"}

      I can get access to the default variables, but not ones set by setenv plugin or by any build steps.

      When this is fixed we should make sure that the recipients can be set as well as the email content.

      There are a couple of related patches out there.
      http://n4.nabble.com/Email-notification-recipients-as-a-variable-td1578247.html#a1578247
      Access to node env variables: JENKINS-5465

      I'm not sure if this should be opened against email-ext or setenv plugin.
      http://wiki.jenkins-ci.org/display/JENKINS/Setenv+Plugin
      http://wiki.jenkins-ci.org/display/JENKINS/Email-ext+plugin

      There is not currently a setenv component in jira so I'm opening this against email-ext.

      A recent discussion of this issue: http://n4.nabble.com/How-to-use-environment-variables-td1012822.html#a1012822

        Attachments

          Issue Links

            Activity

            Hide
            maxandersen Max Andersen added a comment -

            This is still not working in mail-ext.

            Show
            maxandersen Max Andersen added a comment - This is still not working in mail-ext.
            Hide
            slide_o_mix Alex Earl added a comment -

            Since setenv is deprecated, have you tried EnvInject?

            Show
            slide_o_mix Alex Earl added a comment - Since setenv is deprecated, have you tried EnvInject?
            Hide
            maxandersen Max Andersen added a comment -

            No, how would one do that ?

            Show
            maxandersen Max Andersen added a comment - No, how would one do that ?
            Hide
            slide_o_mix Alex Earl added a comment -

            Install the EnvInject plugin and setup the injection of the environment variables, then see if the variables are available via the $ENV_VAR or ${ENV, var="ENV_VAR"} syntax.

            Show
            slide_o_mix Alex Earl added a comment - Install the EnvInject plugin and setup the injection of the environment variables, then see if the variables are available via the $ENV_VAR or ${ENV, var="ENV_VAR"} syntax.
            Hide
            slide_o_mix Alex Earl added a comment -

            This is not a defect in the email-ext plugin.

            Show
            slide_o_mix Alex Earl added a comment - This is not a defect in the email-ext plugin.

              People

              • Assignee:
                Unassigned
                Reporter:
                jminne jminne
              • Votes:
                6 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: