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