本文介绍了在Jenkins的email-ext中快速测试Jelly模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Jenkins的Email-ext允许您编写Jelly电子邮件模板.如何编写和测试一个而不每次都触发构建?基本上,我正在寻找1秒钟的迭代时间,在该迭代中我可以修改Jelly脚本,在浏览器上单击刷新",然后它将根据硬代码项目自动生成模板并生成结果.

The Email-ext of Jenkins allows you to write a Jelly email template. How do you write and test one without triggering a build every time? Basically, I'm looking for a 1 second iteration where I can modify a Jelly script, hit refresh on a browser, and it will automatically render the template based upon a hard-code project and build result.

推荐答案

在该插件的最新版本中,现在可以选择针对构建版本测试模板.当您在作业的屏幕上时,左侧应该有一个链接,显示电子邮件模板测试.它将允许您选择要再次测试的内部版本,并将在那里渲染模板.

There is now an option to test templates against builds in the more recent versions of the plugin. When you are on a job's screen, there should be a link on the left side that says Email Template Testing. It will let you select a build to test again and it will render the template right there.

这篇关于在Jenkins的email-ext中快速测试Jelly模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 16:36