jenkins插件md转html,如何将插件添加到docker jenkins?

插件有两件事,一是预安装的插件,一是在jenkins启动后存储已安装的插件.因此,对于预安装的插件,您可以将撰写内容更改为以下内容

docker-compose.yml

version: '2'

services:

jenkins:

build:

context: .

container_name: jenkins

restart: always

ports:

- 80:8080

volumes:

- ./jenkins_home:/var/jenkins_home

.dockerignore

jenkins_home

Docker文件

FROM jenkins/jenkins:lts

COPY plugins.txt /usr/share/jenkins/ref/plugins.txt

RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt

plugins.txt

cucumber-testresult-plugin:0.8.2

pam-auth:1.1

matrix-project:1.4.1

script-security:1.13

现在将jenkins_home保留为已挂载的卷,将确保所有jenkin更改均被保留.保留plugins.txt文件可确保您的容器以预安装的插件开头.并且卷挂载将保留任何共享插件.文档中的关键点

When jenkins container starts, it will check JENKINS_HOME has this reference content, and copy them there if required. It will not override such files, so if you upgraded some plugins from UI they won’t be reverted on next start.

如果您需要其他最新信息,请参考以下链接

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值