栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

Jenkins trigger on-demand slaves in dockers

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Jenkins trigger on-demand slaves in dockers

  1. Docker slave image creation steps like installing openssh, user creation, mentioned in the below link. Install docker plugin from the below link.

Click here!

  1. Go to jenkins global configuration, Under cloud headings, docker configuration will be there, enter docker host url with port number, credential not required. give some values for connection timeout & read timeout.

  2. Under docker template - Enter the docker image name which we created in the point number 1.

  3. Set Label number (Give this label name during Jenkins job creation and restrict to this slave name),

  4. Select the usage option - > only build job with label restriction.

  5. No of executor -> minimum 1. Select launch method as ssh, enter the user credential to login, which we created in docker image in the step number 1.

create a job restrict to docker slave label, run, ondemand it wil spun up
container.



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/409308.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号