简体   繁体   English

将Hudson构建脚本存储在git repo中

[英]storing Hudson build scripts in a git repo

I'm looking to version and backup the task configurations and scripts in hudson now that we have more than one person editing them and this seems like a great job for git. 现在我们要在hudson中对任务配置和脚本进行版本控制和备份,因为我们有多个人来编辑它们,这对git来说似乎是一项很棒的工作。 I'll bet someone already has a plugin or something that will do this automagically. 我敢打赌,某人已经有一个插件或可以自动完成此操作的东西。 If not then would it work and or be ellegant to just run git init in the hudson config dir? 如果没有,那么只在hudson配置目录中运行git init会行得通吗?

There is a new plugin: SCM Sync configuration plugin . 有一个新插件: SCM Sync配置插件 So far it only works with subversion, but the author wants to add other SCMs as well. 到目前为止,它仅适用于Subversion,但作者还希望添加其他SCM。 Let him know, what you need. 让他知道,您需要什么。 I don't know how easy it is to implement git support. 我不知道实现git支持有多么容易。

You can use git in that directory just like in any other directory. 您可以在该目录中使用git,就像在其他任何目录中一样。

I doubt there's a plugin for backing up configuration files on changes to git automatically. 我怀疑是否有一个插件可以在git更改后自动备份配置文件。

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

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