如何在詹金斯中使用作业导入插件 [英] How to use job import plugin in jenkins

查看:125
本文介绍了如何在詹金斯中使用作业导入插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法同时访问两台服务器,因此,只有jenkins ui可用,cli不是一个选择.我需要使用作业导入插件来导入作业,但是我无法弄清楚如何配置插件以导入作业.谁能帮我这个忙.

解决方案

要配置Jenkins远程插件,您需要添加 Jenkins服务器来导入作业.

设置Jenkins服务器

要添加Jenkins服务器,您需要继续进行Jenkins配置:Manage Jenkins> Configure System> Job Import Plugin Add 选项.

使用Jenkins导入插件

设置Jenkins服务器后,您将可以使用Jenkins导入插件,该插件将转到Jenkins主页中的选项Job Import Plugin或进入以下URL: 解决方案

To configure the Jenkins Remote Plugin, you need to add a Jenkins Server to import your jobs.

Setting a Jenkins Server

To add a Jenkins Server you need to go on your Jenkins configuration: Manage Jenkins > Configure System > Job Import Plugin or http://jenkins-host:port/configure and add the Url and credentials to the host from where will import the jobs.

If you don't have, will need to add the credentials to this server, to do this click on the option Add bellow the Url settings.

Using the Jenkins Import plugin

After setting a Jenkins server you will be able to use the Jenkins Import plugin going to option Job Import Plugin in the Jenkins home or going to the URL: http://jenkins-host:port/Job-import/

If you added only a Jenkins Server it will be selected as default, otherwise, the correct Jenkins server will need to be selected:

Normally you don't need to set the Remote folder or Search into folders options, so if you use the default Jenkins settings, leave these fields blank.

Then, you will click on the Query! button, to start your import. A page with all jobs available to be imported will be showed.

You will need to select all the jobs you want to import one by one, If you have many jobs (like in my case) this can be a little boring. A good idea is to select the Install required plugins option too.

After select everything, you can click on the Import! button to finally starts your import.

这篇关于如何在詹金斯中使用作业导入插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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