简体   繁体   English

是否可以使用脚本下载和配置jenkins?

[英]Is it possible to download and configure jenkins with a script?

I want to develop a continuous integration with one or many scripts locally and then on a server. 我想在本地然后在服务器上开发一个或多个脚本的持续集成。

For that I need Jenkins. 为此,我需要詹金斯。 I installed jenkins in a docker container, but would it be possible to configure it with a script so that the configuration can be used on any computer that runs it? 我将jenkins安装在docker容器中,但是可以使用脚本对其进行配置,以便可以在运行它的任何计算机上使用该配置吗? When I talk about configuration, I'm talking about jenkins jobs and plugins. 当我谈论配置时,我是在谈论詹金斯的工作和插件。

You can use a configuration management tool like chef or ansible to install and configure in automated way. 您可以使用Chef或ansible等配置管理工具以自动方式进行安装和配置。 If using chef you can use the community cookbook . 如果使用厨师,则可以使用社区食谱 If you are only looking for creating jobs automated way check this thread . 如果您只是在寻找自动创建作业的方式,请检查此线程 Similar way you will be able to create groovy script to install plugins as well. 同样,您将能够创建Groovy脚本来安装插件。

Also take a look at this article 也看看这篇文章

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

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