Hudson Master 系统的备份配置

发布于 2024-07-30 19:49:11 字数 171 浏览 1 评论 0原文

我需要 Hudson Master 系统的备份配置

详细信息 如果 Hudson Master 系统出现故障,我们需要尽快(可能需要 3 小时)将其在不同的虚拟机上恢复。 因此,我需要开发一种方法来可靠地备份配置并重置新的虚拟机。 任何人都可以让我一步一步知道最好的方法。

谢谢

I need Backup configuration of Hudson Master systems

Detailed information
If a Hudson Master system goes down, we need to be able to bring it back up on a different VM as soon as possible (may be 3 hours). Therefore, I need to develop a way to backup the configuration and resetup a new VM reliabily. can any body let me know best way step by step.

THANKS

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

尹雨沫 2024-08-06 19:49:12

或者只使用 Hudson 备份插件?

Or just use Hudson backup plugin?

余生共白头 2024-08-06 19:49:12

当我配置 hudson 时,我进行了以下设置:

  1. 主节点未用于构建 - 0 个构建代理且没有标签。 这可以保持主目录中没有工作区内容。 所有构建工件都从从站上传到此文件夹,因此您不会错过任何重要的内容。
  2. 备份master的根目录,包括war文件和 一切都创造历史。
  3. 指派奴隶来做实际的建筑工作。 您可以在与主进程相同的计算机上运行从进程,只需为其提供不同的根目录即可。 不需要太多支持这一点。

恢复服务器实际上只是将主配置目录恢复到虚拟机并启动它。 如果您在 Windows 上运行,您还需要将其重新安装为服务,并执行让 hudson 正常工作所需的所有操作(即安装 java)。 在这种情况下,对工作中的 hudson 服务器进行映像是一个好主意,在恢复映像后恢复主服务器的根目录应该会使您的 hudson 更新到最新的备份。

When I was configuring hudson, I had the following setup:

  1. Master node was not used for building - 0 build agents and no tags. This keeps the master directory clean of the workspace stuff. All build artifacts are uploaded to this folder from the slaves, so you're not missing anything important.
  2. Backup the master's root directory, this includes the war file & all build history.
  3. Assign slaves to do the actual building. You can run a slave process on the same machine as the master, just give it a different root directory. Not much need to back this up.

Restoring the server really is just a case of restoring the master configuration directory to a vm and starting it up. If you're running on windows you'll also need to re-install it as a service and do all the things that you needed to do to get hudson to work in the first place (ie, install java). Imaging a working hudson server in this case is a good idea, restoring the master's root directory after restoring the image should bring your hudson up to date to the last backup.

蓦然回首 2024-08-06 19:49:12

您应该能够在 unix 上或 Windows 上的等效目录中创建 ~/.hudson 目录的副本,然后在另一台计算机上恢复该副本。

您还需要记下其他构建工具(maven/ant)、JDK、这些构建工具的配置文件(~/.m2/settings.xml)等的路径。

我已经通过这种方式将 Hudson 从一个服务器迁移到另一个服务器。

You should be able to make a copy of the ~/.hudson directory on unix or the equivalent on windows and then restore that copy on another machine.

You'll also want to make note of the paths on other builds tools (maven/ant), JDKs, config files for thos build tools (~/.m2/settings.xml) and the like.

I've migrated Hudson from server to server this way.

飘然心甜 2024-08-06 19:49:12

您可以配置执行以下操作的构建作业:

http://:;/backup/launchBackup&"

you can configure a build job that does:

"http://<host>:<port>/backup/launchBackup &"

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文