自动配置或创建hudson作业 [英] Configure or Create hudson job automatically

查看:150
本文介绍了自动配置或创建hudson作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过一个Hudson作业创建新的Hudson作业基于一个以前的Jobs?

Is there any way to create new Hudson job by one more Hudson job based one previous Jobs?

例如,如果我需要创建新的一堆作业one,自动创建4个具有不同参数的类似配置的作业

For example if I need to create new bunch of jobs one by one, Automatically create 4 jobs with similar configuration with different parameter

基本上这样的步骤


  1. 创建SVN分支我可以调用 svn cp 命令,并使用脚本进行参数化

  2. 创建基于新< c $ c> svnbranch 名称

  3. 以后标记

  1. create SVN branch I can call svn cp command and make it parametrized using script
  2. Create some build based on new svnbranch name
  3. Later tag it

或者其他单词,我需要克隆以前的工作,并给新分支的名称$ Branch进入新工作。

Or other word, I need to clone the previous job and give the new branch name where ever $ Branch comes in new job.

感谢

推荐答案

您可以尝试 Hudson Remote API 用于此类任务(设置Hudson项目)。

请参阅本教程,很容易:

See this tutorial for instance, and remember you can display the help quite easily:

java -jar hudson-cli.jar -s http://your_Hudson_server/ help

因此,要复制作业:

java -jar hudson-cli.jar -s http://your_Hudson_server/ copy-job myjob copy-myjob

这篇关于自动配置或创建hudson作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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