I am trying to use the value of Jenkins env variable in the recipient field for the Editable Email Notification. When running the build it is unable to resolve the variable.
Here is the plugin version info
<publishers>
<hudson.plugins.emailext.ExtendedEmailPublisher plugin="[email protected]">
Below is my powershell build code
Write-Host "Testing email list."
$EMAIL_LIST2 = "[email protected]"
Write-Host $EMAIL_LIST2
echo "${EMAIL_LIST2}"
I have attached the values of the editable email notification
Below is the setting where the variable is expanded
When executing, neither of the following ways work
This way - "${EMAIL_LIST2}"or $EMAIL_LIST2
Here is the output of the job run
[email protected]
[email protected]
Email was triggered for: Success
Sending email for trigger: Success
Sending email to: <"${EMAIL_LIST2}"@randomdomain>
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
Finished: SUCCESS