简体   繁体   English

作业生成器詹金斯插件

[英]job generator jenkins plugin

I am currently working on a project where we use jenkins to automate jobs and process continuous integration. 我目前在一个项目中,我们使用jenkins使作业自动化并进行持续集成。 We use a job Generator to produce jobs, that will run tests on the specified branch as generator parameter. 我们使用作业生成器来生成作业,该作业将在指定的分支上作为生成器参数运行测试。

I would like to add some build step to the job generator, to be processed while it is run, and not copied to the newly created job. 我想在作业生成器中添加一些构建步骤,使其在运行时进行处理,而不是复制到新创建的作业中。 Is there a way to do that ? 有没有办法做到这一点 ?

A workaround would be to create a job that will do the task i want to do and then run the job generator, but it looks ugly to me. 一种解决方法是创建一个工作,该工作将完成我想做的任务,然后运行工作生成器,但对我来说看起来很丑。 Any other way ? 还有其他方法吗?

Thanks for your help. 谢谢你的帮助。

You can create your additional step as a separate job and then use Multijob project to split the job and the generator into different phases, which will be processed sequentially. 您可以将其他步骤创建为单独的作业,然后使用Multijob项目将作业和生成器分为不同的阶段,这些阶段将被顺序处理。 So first goes your 'additional step job', then job generations. 因此,首先要进行“其他步骤的工作”,然后再进行工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM