问题描述
在一个项目中,我正在从事的工作是拥有一个非常高级的命令行界面来构建,测试,打包和部署软件.
On a project Im working on we have a pretty advanced command-line interface to build, test, package and deploy software.
现在,我们想使用jenkins作为此CLI的前端,并且希望能够生成作业配置.我们希望界面简单,用户只需提供几个参数,然后詹金斯便会查询我们的CLI并生成所需的构建步骤.
Now we want to use jenkins as a front-end to this CLI and we want to be able to generate job configurations. We want the interface simple, the user only supply a couple of parameters and jenkins will then query our CLI and generate the needed build steps.
简单用例:
- 创建新的特定领域工作
- 选择产品
- Jenkins现在查询CLI,并使用不同的产品更新下一个下拉列表.
- Create new domain-specific-job
- Select Product
- Jenkins now queries the CLI and updates the next drop-down with the products different brances.
作为我在Jenkins(以及整个jenkins)插件开发方面的新手,我很乐意获得一些提示和指导,从何处开始.
As Im new to plugin development in Jenkins (and jenkins overall) I would love to get some tips and pointers to where to start.
推荐答案
看看 jenkins -jenkins中的-job-builder ,它可以帮助您抽象化工作并使用命令行来创建jenkins作业.
Take a look at jenkins-job-builder from jenkins, it could help you to abstract your work and use command line to create the jenkins jobs.
这篇关于詹金斯职位生成器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!