Jenkins插件中global.jelly和config.jelly的用法 [英] Usage for global.jelly and config.jelly in Jenkins plugin

查看:438
本文介绍了Jenkins插件中global.jelly和config.jelly的用法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Maven 3开发Jenkins插件,请参见两个默认的.jelly文件:global.jelly和config.jelly.两者之间有什么区别,您能举例说明每个文件中的内容吗?

I am working on a Jenkins plugin using Maven 3 see two default .jelly files: global.jelly and config.jelly. What is the difference between the two, and can you give me examples of what goes in each file?

这是由以下人员创建的项目的结果:

This is a result of a project created by:

mvn hpi:create

在此先感谢您的帮助!

推荐答案

  • global.jelly用于全局配置(即每个Jenkins实例-您可以在http://<your_jenkins_server>/configure处配置的值) 例如-SMTP服务器地址(如果这是一个邮件插件),或者某个工具位置(如果您的插件调用该工具)

    • global.jelly is for global configuration (i.e per Jenkins instance - the values you can configure at http://<your_jenkins_server>/configure ) examples can be - SMTP server address if this is a mailer plugin, or some tool location if your plugin calls that tool

      config.jelly用于作业配置-为特定作业定义插件参数.

      config.jelly is for the job configuration - defining plugin parameters for a specific job.

      示例:该工作报告的邮件收件人,特定的执行参数,输出文件位置等.

      examples: mail recipients for that job reports, specific execution parameters, output file locations, etc.

      这篇关于Jenkins插件中global.jelly和config.jelly的用法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆