简体   繁体   English

如何在詹金斯中创建动态奴隶

[英]How to create dynamic slave in jenkins

I have requirement to create dynamic slave in jenkins ,the backgroud is i would be creating dynamic cloud instances on run time in linux.So I wont be knowing the fixed IP address for slave configuration.So please help to explain to create slave dynamically .Is there any already existing plugin available or need to write groovy script. 我需要在jenkins中创建动态从属服务器,背景是我要在linux上的运行时创建动态云实例。因此,我将不知道用于从属服务器配置的固定IP地址。因此,请帮助解释如何动态创建从属服务器。没有任何可用的现有插件,或者需要编写常规脚本。

How i could use RemoteLauncher .I am new to grrovy script.Are there any simple steps to achieve.. 我如何使用RemoteLauncher 。我是不喜欢脚本的人。是否有任何简单的步骤可以实现..

Thanks 谢谢

You should give a try to Docker, as you can configure a docker image with your environment and you can configure jenkins to launch dinamically any docker container instances you need. 您应该尝试使用Docker,因为可以在您的环境中配置Docker映像,并且可以配置jenkins以动态方式启动所需的任何Docker容器实例。

I recommend you to check the Docker documentation and these plugins: 我建议您检查Docker文档和以下插件:

https://wiki.jenkins-ci.org/display/JENKINS/Docker+Plugin https://wiki.jenkins-ci.org/display/JENKINS/Docker+Plugin

https://wiki.jenkins-ci.org/display/JENKINS/Docker+build+step+plugin https://wiki.jenkins-ci.org/display/JENKINS/Docker+build+step+plugin

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

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