Custom Jelly templates should be placed in $JENKINS_HOME/email-templates. Custom scripts should be placed in $JENKINS_HOME/email-templates. plugin will look in the resources forthe email-ext plugin first, and then in the $JENKINS_HOME/email-templates Custom templates should be placed in $JENKINS_HOME/email-templates. plugin will look in the resources forthe email-ext plugin first, and then in the $JENKINS_HOME/email-templates
也可以自定义Jelly 脚本,将脚本放置在 ${JENKINS_HOME}/email-templates/,详见 https://github.com/jenkinsci/email-ext-plugin
邮件提示,机器中 $JENKINS_HOME/email-templates 下并不存在 my-email-template 模版。(笑哭) 没有权限怎么办呢?咱可以通过其他方法不?
自定义脚本应该放在"$JENKINS_HOME/email-templates"。当使用自定义脚本时会默认搜索$JENKINS_HOME/email-templatesdirectory目录。 你可以在$JENKINS_HOME/email-templates下自定义替换它。当使用自动义模板时,”template”参数的名称不包含“.jelly”。 把脚本存放在JENKINS_HOME\email-templates文件夹里。 3. 使用Jelly变量,让template匹配你的脚本名称(不要包含后缀)。
模板,并在 Default Content 中引用 ${JELLY_SCRIPT, template="html_gmail"}: sudo mkdir -p /var/lib/jenkins/email-templates sudo cd /var/lib/jenkins/email-templates sudo wget https://github.com/jenkinsci/email-ext-plugin/raw
让你的 Jenkins 管理员将脚本放在里面${JENKINS_HOME}/email-templates/。
回到项目配置, 在构建环境里, 勾上Provide Configuration files 选择File为刚新增的jelly文件,target填写/var/jenkins_home/email-templates
支持访问控制模型(如 ACL、RBAC 和 ABAC )的授权库 电子邮件 Nodemailer - 处理电子邮件的最快方式 emailjs - 向任何 SMTP 服务器发送带有附件的文本 / HTML 电子邮件 email-templates