最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Jenkins Editable Email Notification Unable to resolve env variable for Recipient List - Stack Overflow

programmeradmin1浏览0评论

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
发布评论

评论列表(0)

  1. 暂无评论