gre*_*det 12 jenkins jenkins-plugins
我们在没有Internet访问权限的服务器上运行Jenkins(甚至通过代理).安装和保持Jenkins安装是最新的是一件痛苦的事!
我的想法是通过具有Internet访问权限的Windows工作站制作完整的Jenkins公共更新站点的本地镜像.然后通过NFS共享将此本地镜像提供给Jenkins.
所以我的问题:如何制作本地镜像?你有更好/更简单的想法让Jenkins安装保持最新吗?
小智 5
要生成更新站点 (update-center.json),您可以使用https://github.com/jenkins-infra/backend-update-center2项目
我的步骤:
openssl genrsa -out your-update-center.key 1024
openssl req -new -x509 -days 1095 -key your-update-center.key -out your-update-center.crt
mvn exec:java -Dexec.args="-id default -h /dev/null
-o update-center.json -repository ULR_TO_NEXUS_REPO
-remoteIndex .index/nexus-maven-repository-index.gz -repositoryName YOUR_REPO_NAME
-directLink -pretty -nowiki -key your-update-center.key
-certificate your-update-center.crt
-root-certificate your-update-center.crt”
附注。不要忘记生成和发布 Nexus 2 nexus-maven-repository-index.gz 索引文件。为此使用“发布索引”任务。
您可以在https://github.com/ikedam/backend-update-center2/wiki/How-to-create-your-own-Jenkins-Update-Center找到有关更新程序中心的一些其他信息
手动下载war文件,停止服务器,替换war,重新启动服务器,问题出在哪里?插件也是如此。
如果我考虑一下,可能有更好的方法,在可以访问互联网的系统上安装沙箱 Jenkins。您使用 UI 更新服务器,然后可以彻底测试更新后的 Jenkins。完成后,您只需将 war 和 hpi 文件复制到您的“生产”Jenkins 中。现在你甚至有了一个很好的流程和质量保证。
| 归档时间: |
|
| 查看次数: |
9086 次 |
| 最近记录: |