Jenkins 中的导出/导入作业 [英] Export/import jobs in Jenkins

查看:31
本文介绍了Jenkins 中的导出/导入作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 2 个不同的 Jenkins 之间交换工作?我正在寻找导出/导入作业的方法.

Is it possible to exchange jobs between 2 different Jenkins'? I'm searching for a way to export/import jobs.

推荐答案

Jenkins 有一个相当不错的 wiki,尽管在您刚接触 CI 软件时很难阅读...

Jenkins has a rather good wiki, albeit hard to read when you're new to CI software...

他们为移动工作提供了一个简单的解决方案服务器之间

诀窍可能是需要从 Jenkins 配置页面重新加载配置.

The trick probably was the need to reload config from the Jenkins Configuration Page.

2020.03.10 更新

JenkinsCI 环境发生了很大变化...我一直在使用 工作 DSL有一段时间了.我们有一个 SEED 作业来生成其余的作业.

The JenkinsCI landscape has changed a lot... I've been using Job DSL for a while now. We have a SEED Job that generates the rest of the jobs.

这有助于我们在需要时重新创建或移动 Jenkins 服务器:)您还可以对这些文件进行版本控制,以提高可维护性!

This helps us both recreate or move for the Jenkins server whenever needed :) You could also version those files for even more maintainability!

这篇关于Jenkins 中的导出/导入作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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