Age*_*dit 11 groovy jenkins jenkins-plugins email-ext
jenkins上的email-ext插件提供的模板和示例引用变量build, root, it等等......这些变量来自哪里以及它们的文档在哪里?我在某种程度上理解这it是对插件实例的引用,但那是关于我的理解结束的地方.
如果您需要参考脚本,可以在这里看到一些示例:https: //github.com/jenkinsci/email-ext-plugin/tree/master/src/main/resources/hudson/plugins/emailext/templates
mal*_*cot 14
build:hudson.model.AbstractBuild - 您的构建实例.
project== build.getParent() - 构建的作业实例.
it:( ScriptContentBuildWrapper(build)内部ExtEmail类)
rootUrl Jenkins配置中设置的Jenkins URL
template:模板名称
这是EmailExt插件代码链接.您正在寻找的是ScriptContent.createEngine()方法.
供参考,这里是Jenkins API链接.
| 归档时间: |
|
| 查看次数: |
4482 次 |
| 最近记录: |