提交 02bf95c2 编写于 作者: LinuxSuRen's avatar LinuxSuRen

Auto commit by hugo-plugin.

上级 929a0e89
......@@ -244,8 +244,8 @@
<a href="/event/shanghai-2019-06/" class="tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5">
<img width="400px" height="200px" src="/images/meetup/shanghai.jpeg"></img>
<a href="/event/shenzhen/" class="tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5">
<img width="400px" height="200px" src="/images/meetup/shenzhen.jpeg"></img>
</a>
......@@ -258,29 +258,29 @@
<a href="/event/shenzhen/" class="tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5">
<img width="400px" height="200px" src="/images/meetup/shenzhen.jpeg"></img>
<a href="/event/hangzhou-2019-05/" class="tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5">
<img width="400px" height="200px" src="/images/meetup/hangzhou.jpeg"></img>
</a>
<a href="/event/wuhang/" class="tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5">
<a href="/event/beijing-2019-11/" class="tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5">
<img width="400px" height="200px" src="/images/meetup/hacktberfest.jpg"></img>
</a>
<a href="/event/hangzhou-2019-05/" class="tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5">
<img width="400px" height="200px" src="/images/meetup/hangzhou.jpeg"></img>
<a href="/event/wuhang/" class="tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5">
<img width="400px" height="200px" src="/images/meetup/hacktberfest.jpg"></img>
</a>
<a href="/event/beijing-2019-11/" class="tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5">
<img width="400px" height="200px" src="/images/meetup/hacktberfest.jpg"></img>
<a href="/event/shanghai-2019-06/" class="tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5">
<img width="400px" height="200px" src="/images/meetup/shanghai.jpeg"></img>
</a>
......
......@@ -38,6 +38,19 @@
"original": "",
"poster": "../../../images/articles/2019/05/2019-05-08-jenkins-plugin-develop-within-two-days-part02/sunset.png"
},
{
"uri": "https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/",
"title": "Jenkins 自动化安装插件",
"type": "wechat",
"date": "2019-05-07 00:00:00 +0000 UTC",
"tags": ["jenkins"],
"description": "Jenkins 批量安装指定版本插件",
"content": " 手工安装 Jenkins 插件的方法 通常,我们有两种方法安装 Jenkins 插件。第一种方法是到 Jenkins 插件管理页面搜索插件,然后安装。第二种方法是上传 Jenkins 插件的 hpi 文件安装。这两种方法能满足大多数人的需求。\n第一种方法,如下图所示: 第二种方法,如下图所示: 但是对于需要保证 Jenkins 稳定或在 Jenkins 上进行二次开发的同学来说,以上方法是无法满足需求的。\n第一种方法是无法指定插件的版本。第二种方式必须自己找到该插件的依赖树,然后根据依赖关系一个个地安装。是的,手工上传插件的这种方法,Jenkins 是不会自动下载依赖的。\n还有,就是这两种方式都无法实现批量安装。\n自动安装插件的方法 那么,有什么方法能指定插件的版本,又能自动下载它的依赖,还能批量下载呢?\n幸运的是,Jenkins 的 Docker 镜像的代码仓库里的 install-plugins.sh 脚本已经实现。只不过需要我们拿过来小小修改才能使用。笔者修改后创建了相应的代码仓库:jenkins-install-plugins-shell 。链接在文章末尾。\n以下是 jenkins-install-plugins-shell 的使用方法: 1. 将代码 clone 到 JENKINS_HOME 目录中。\ncd $JENKINS_HOME git clone https://github.com/zacker330/jenkins-install-plugins-shell.git cd jenkins-install-plugins-shell 在 plugins.txt 中加入希望安装的插件 在 jenkins-install-plugins-shell 目录中,有一个 plugins.txt 文件,在文件中写入希望安装的插件及版本号。例如: ansible:1.0 powershell:1.3 执行安装\n# Jenkins War 的路径,用于分析 export JENKINS_WAR_PATH=\u0026lt;Jenkins war文件的路径\u0026gt; chmod +x install-plugins.sh jenkins-support ./install-plugins.sh \u0026lt; plugins.txt 重启 Jenkins install-plugins 本质上做的事情就只是将插件从云端下载到 JENKINS_HOME 下的 plugins 目录中。要使安装的插件生效,还需要重启 Jenkins。\n 关于 Jenkins 插件的名称 Jenkins 插件有两个名称。一个叫 display name,一个叫 short name。比如 Ansible 插件的 disply name 为 Ansible plugin,short name 为 ansible。\n如何知道一个插件的 short name 呢?可以在 Jenkins 插件官网上找到,比如 Ansible 的:\n在 plugins.txt 中使用的是 short name。\n总结 笔者为什么一定要确定 Jenkins 插件的版本?是因为插件的版本会影响 Jenkins 流水线的可靠性。所以,笔者才会这么在意 Jenkins 插件的版本。\n附录 Jenkins 官方 Docker 镜像中的自动化插件安装脚本:https://github.com/jenkinsci/docker/blob/master/install-plugins.sh 笔者修改后的自动化插件安装脚本: https://github.com/zacker330/jenkins-install-plugins-shell ",
"auhtor": "zacker330",
"translator": "",
"original": "",
"poster": "../../../images/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/poster.png"
},
{
"uri": "https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/",
"title": "Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)",
......
......@@ -52,6 +52,23 @@ artifactId 插件的 artifactId 被用于文件基本名称,是 Jenkins 插件
笔者所写的插件的名称为:Maven SNAPSHOT Check 。</description>
</item>
<item>
<title>Jenkins 自动化安装插件</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/</link>
<pubDate>Tue, 07 May 2019 00:00:00 +0000</pubDate>
<guid>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/</guid>
<description>手工安装 Jenkins 插件的方法 通常,我们有两种方法安装 Jenkins 插件。第一种方法是到 Jenkins 插件管理页面搜索插件,然后安装。第二种方法是上传 Jenkins 插件的 hpi 文件安装。这两种方法能满足大多数人的需求。
第一种方法,如下图所示: 第二种方法,如下图所示: 但是对于需要保证 Jenkins 稳定或在 Jenkins 上进行二次开发的同学来说,以上方法是无法满足需求的。
第一种方法是无法指定插件的版本。第二种方式必须自己找到该插件的依赖树,然后根据依赖关系一个个地安装。是的,手工上传插件的这种方法,Jenkins 是不会自动下载依赖的。
还有,就是这两种方式都无法实现批量安装。
自动安装插件的方法 那么,有什么方法能指定插件的版本,又能自动下载它的依赖,还能批量下载呢?
幸运的是,Jenkins 的 Docker 镜像的代码仓库里的 install-plugins.sh 脚本已经实现。只不过需要我们拿过来小小修改才能使用。笔者修改后创建了相应的代码仓库:jenkins-install-plugins-shell 。链接在文章末尾。
以下是 jenkins-install-plugins-shell 的使用方法: 1. 将代码 clone 到 JENKINS_HOME 目录中。
cd $JENKINS_HOME git clone https://github.com/zacker330/jenkins-install-plugins-shell.git cd jenkins-install-plugins-shell 在 plugins.txt 中加入希望安装的插件 在 jenkins-install-plugins-shell 目录中,有一个 plugins.txt 文件,在文件中写入希望安装的插件及版本号。例如: ansible:1.0 powershell:1.3 执行安装
# Jenkins War 的路径,用于分析 export JENKINS_WAR_PATH=&amp;lt;Jenkins war文件的路径&amp;gt; chmod +x install-plugins.</description>
</item>
<item>
<title>Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/</link>
......
......@@ -16,6 +16,11 @@
<lastmod>2019-05-08T00:00:00+00:00</lastmod>
</url>
<url>
<loc>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/</loc>
<lastmod>2019-05-07T00:00:00+00:00</lastmod>
</url>
<url>
<loc>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/</loc>
<lastmod>2019-05-06T00:00:00+00:00</lastmod>
......
......@@ -760,6 +760,12 @@
</a>
</h3>
<h3>
<a href="https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link blue">
Jenkins 自动化安装插件
</a>
</h3>
<h3>
<a href="https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link blue">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -213,6 +213,33 @@
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link primary-color dim">Jenkins 自动化安装插件</a>
</h1>
<div class="lh-copy links">
Jenkins 批量安装指定版本插件
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
......
......@@ -39,6 +39,23 @@ artifactId 插件的 artifactId 被用于文件基本名称,是 Jenkins 插件
笔者所写的插件的名称为:Maven SNAPSHOT Check 。</description>
</item>
<item>
<title>Jenkins 自动化安装插件</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/</link>
<pubDate>Tue, 07 May 2019 00:00:00 +0000</pubDate>
<guid>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/</guid>
<description>手工安装 Jenkins 插件的方法 通常,我们有两种方法安装 Jenkins 插件。第一种方法是到 Jenkins 插件管理页面搜索插件,然后安装。第二种方法是上传 Jenkins 插件的 hpi 文件安装。这两种方法能满足大多数人的需求。
第一种方法,如下图所示: 第二种方法,如下图所示: 但是对于需要保证 Jenkins 稳定或在 Jenkins 上进行二次开发的同学来说,以上方法是无法满足需求的。
第一种方法是无法指定插件的版本。第二种方式必须自己找到该插件的依赖树,然后根据依赖关系一个个地安装。是的,手工上传插件的这种方法,Jenkins 是不会自动下载依赖的。
还有,就是这两种方式都无法实现批量安装。
自动安装插件的方法 那么,有什么方法能指定插件的版本,又能自动下载它的依赖,还能批量下载呢?
幸运的是,Jenkins 的 Docker 镜像的代码仓库里的 install-plugins.sh 脚本已经实现。只不过需要我们拿过来小小修改才能使用。笔者修改后创建了相应的代码仓库:jenkins-install-plugins-shell 。链接在文章末尾。
以下是 jenkins-install-plugins-shell 的使用方法: 1. 将代码 clone 到 JENKINS_HOME 目录中。
cd $JENKINS_HOME git clone https://github.com/zacker330/jenkins-install-plugins-shell.git cd jenkins-install-plugins-shell 在 plugins.txt 中加入希望安装的插件 在 jenkins-install-plugins-shell 目录中,有一个 plugins.txt 文件,在文件中写入希望安装的插件及版本号。例如: ansible:1.0 powershell:1.3 执行安装
# Jenkins War 的路径,用于分析 export JENKINS_WAR_PATH=&amp;lt;Jenkins war文件的路径&amp;gt; chmod +x install-plugins.</description>
</item>
<item>
<title>Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/</link>
......
......@@ -35,7 +35,7 @@
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jenkins-zh.cn/tags/jenkins/" />
<meta property="og:updated_time" content="2019-04-10T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-04-12T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Jenkins">
<meta itemprop="description" content="">
......@@ -213,6 +213,33 @@
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link primary-color dim">Jenkins 自动化安装插件</a>
</h1>
<div class="lh-copy links">
Jenkins 批量安装指定版本插件
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
......
......@@ -445,6 +445,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -389,6 +389,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -546,6 +546,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -468,6 +468,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -478,6 +478,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -422,6 +422,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -511,6 +511,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -436,6 +436,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -580,6 +580,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -430,6 +430,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -214,7 +214,7 @@
</a>
<a href="https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-08-jenkins-plugin-develop-within-two-days-part02/" class="dib f6 pl1 hover-bg-light-gray br-100" title="Jenkins 插件开发之旅:两天内从 idea 到发布(下篇) ">
<a href="https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="dib f6 pl1 hover-bg-light-gray br-100" title="Jenkins 自动化安装插件 ">
<svg class="fill-current" height="30px" viewBox="0 0 24 24" width="30px" xmlns="http://www.w3.org/2000/svg">
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
<path d="M0 0h24v24H0z" fill="none"/>
......@@ -604,6 +604,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
......
......@@ -237,7 +237,7 @@
<a href="https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="dib f6 pr1 hover-bg-light-gray br-100" title="Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)">
<a href="https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="dib f6 pr1 hover-bg-light-gray br-100" title="Jenkins 自动化安装插件">
<svg class="fill-current" height="30px" viewBox="0 0 24 24" width="30px" xmlns="http://www.w3.org/2000/svg">
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
<path d="M0 0h24v24H0z" fill="none"/>
......@@ -617,6 +617,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -339,6 +339,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link">
Jenkins 自动化安装插件
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link">
Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)
......
......@@ -219,15 +219,15 @@
<h1 class="near-black f3">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link primary-color dim">Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)</a>
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="link primary-color dim">Jenkins 自动化安装插件</a>
</h1>
<div class="lh-copy links">
两天内,从产生 idea 到编写插件,最后发布到 Jenkins 插件更新中心
Jenkins 批量安装指定版本插件
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="f6 mt2 db link primary-color dim">
<a href="/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
......@@ -246,15 +246,15 @@
<h1 class="near-black f3">
<a href="/wechat/articles/2019/04/2019-04-30-what-cicd-tool-should-i-use/" class="link primary-color dim">应该使用什么 CI/CD 工具?</a>
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="link primary-color dim">Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)</a>
</h1>
<div class="lh-copy links">
了解典型自动化 CI/CD 部署流水线的组件以及您需要的组件。
两天内,从产生 idea 到编写插件,最后发布到 Jenkins 插件更新中心
<a href="/wechat/articles/2019/04/2019-04-30-what-cicd-tool-should-i-use/" class="f6 mt2 db link primary-color dim">
<a href="/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
......@@ -273,15 +273,15 @@
<h1 class="near-black f3">
<a href="/wechat/articles/2019/04/2019-04-29-progressive-delivery-with-jenkins-x-automatic-cana/" class="link primary-color dim">使用 Jenkins X 渐进式交付:自动化金丝雀部署</a>
<a href="/wechat/articles/2019/04/2019-04-30-what-cicd-tool-should-i-use/" class="link primary-color dim">应该使用什么 CI/CD 工具?</a>
</h1>
<div class="lh-copy links">
为了避免渐进式交付可能带来的麻烦,学习使用 Jenkins X 为金丝雀发布自动部署
了解典型自动化 CI/CD 部署流水线的组件以及您需要的组件
<a href="/wechat/articles/2019/04/2019-04-29-progressive-delivery-with-jenkins-x-automatic-cana/" class="f6 mt2 db link primary-color dim">
<a href="/wechat/articles/2019/04/2019-04-30-what-cicd-tool-should-i-use/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
......@@ -300,15 +300,15 @@
<h1 class="near-black f3">
<a href="/wechat/articles/2019/04/2019-04-28-devsecops/" class="link primary-color dim">我们为什么需要 DevSecOps 和制品仓库?</a>
<a href="/wechat/articles/2019/04/2019-04-29-progressive-delivery-with-jenkins-x-automatic-cana/" class="link primary-color dim">使用 Jenkins X 渐进式交付:自动化金丝雀部署</a>
</h1>
<div class="lh-copy links">
Helen Beal 在 Nexus 用户大会上发表的关于构建 DevSecOps 的建议
为了避免渐进式交付可能带来的麻烦,学习使用 Jenkins X 为金丝雀发布自动部署。
<a href="/wechat/articles/2019/04/2019-04-28-devsecops/" class="f6 mt2 db link primary-color dim">
<a href="/wechat/articles/2019/04/2019-04-29-progressive-delivery-with-jenkins-x-automatic-cana/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
......@@ -327,15 +327,15 @@
<h1 class="near-black f3">
<a href="/wechat/articles/2019/04/2019-04-26-progressive-delivery-with-jenkins-x/" class="link primary-color dim">使用 Jenkins X 渐进式交付</a>
<a href="/wechat/articles/2019/04/2019-04-28-devsecops/" class="link primary-color dim">我们为什么需要 DevSecOps 和制品仓库?</a>
</h1>
<div class="lh-copy links">
使用 Jenkins X 渐进式交付
Helen Beal 在 Nexus 用户大会上发表的关于构建 DevSecOps 的建议
<a href="/wechat/articles/2019/04/2019-04-26-progressive-delivery-with-jenkins-x/" class="f6 mt2 db link primary-color dim">
<a href="/wechat/articles/2019/04/2019-04-28-devsecops/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
......@@ -354,15 +354,15 @@
<h1 class="near-black f3">
<a href="/wechat/articles/2019/04/2019-04-25-jenkins-ansible-nginx/" class="link primary-color dim">使用 Jenkins &#43; Ansible 实现自动化部署 Nginx</a>
<a href="/wechat/articles/2019/04/2019-04-26-progressive-delivery-with-jenkins-x/" class="link primary-color dim">使用 Jenkins X 渐进式交付</a>
</h1>
<div class="lh-copy links">
使用 Jenkins + Ansible 实现自动化部署 Nginx
使用 Jenkins X 渐进式交付
<a href="/wechat/articles/2019/04/2019-04-25-jenkins-ansible-nginx/" class="f6 mt2 db link primary-color dim">
<a href="/wechat/articles/2019/04/2019-04-26-progressive-delivery-with-jenkins-x/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
......@@ -381,15 +381,15 @@
<h1 class="near-black f3">
<a href="/wechat/articles/2019/04/2019-04-24-progressive-delivery-in-kubernetes-blue-green-and-canary-deployments/" class="link primary-color dim">Kubernetes 中的渐进式交付:蓝绿部署和金丝雀部署</a>
<a href="/wechat/articles/2019/04/2019-04-25-jenkins-ansible-nginx/" class="link primary-color dim">使用 Jenkins &#43; Ansible 实现自动化部署 Nginx</a>
</h1>
<div class="lh-copy links">
本文介绍 Kubernetes 中与渐进式交付相关的三个有趣的项目:Shipper、Istio 以及 Flagger
使用 Jenkins + Ansible 实现自动化部署 Nginx
<a href="/wechat/articles/2019/04/2019-04-24-progressive-delivery-in-kubernetes-blue-green-and-canary-deployments/" class="f6 mt2 db link primary-color dim">
<a href="/wechat/articles/2019/04/2019-04-25-jenkins-ansible-nginx/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
......@@ -408,15 +408,15 @@
<h1 class="near-black f3">
<a href="/wechat/articles/2019/04/2019-04-23-jenkins-master-shared-home/" class="link primary-color dim">关于 Jenkins master 共享 JENKINS_HOME 目录的实验</a>
<a href="/wechat/articles/2019/04/2019-04-24-progressive-delivery-in-kubernetes-blue-green-and-canary-deployments/" class="link primary-color dim">Kubernetes 中的渐进式交付:蓝绿部署和金丝雀部署</a>
</h1>
<div class="lh-copy links">
你觉得能通过共享 JENKINS_HOME 目录实现 Jenkins master 的高可用吗?
本文介绍 Kubernetes 中与渐进式交付相关的三个有趣的项目:Shipper、Istio 以及 Flagger
<a href="/wechat/articles/2019/04/2019-04-23-jenkins-master-shared-home/" class="f6 mt2 db link primary-color dim">
<a href="/wechat/articles/2019/04/2019-04-24-progressive-delivery-in-kubernetes-blue-green-and-canary-deployments/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
......
......@@ -39,6 +39,23 @@ artifactId 插件的 artifactId 被用于文件基本名称,是 Jenkins 插件
笔者所写的插件的名称为:Maven SNAPSHOT Check 。</description>
</item>
<item>
<title>Jenkins 自动化安装插件</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/</link>
<pubDate>Tue, 07 May 2019 00:00:00 +0000</pubDate>
<guid>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-07-jenkins-install-plugins-shell/</guid>
<description>手工安装 Jenkins 插件的方法 通常,我们有两种方法安装 Jenkins 插件。第一种方法是到 Jenkins 插件管理页面搜索插件,然后安装。第二种方法是上传 Jenkins 插件的 hpi 文件安装。这两种方法能满足大多数人的需求。
第一种方法,如下图所示: 第二种方法,如下图所示: 但是对于需要保证 Jenkins 稳定或在 Jenkins 上进行二次开发的同学来说,以上方法是无法满足需求的。
第一种方法是无法指定插件的版本。第二种方式必须自己找到该插件的依赖树,然后根据依赖关系一个个地安装。是的,手工上传插件的这种方法,Jenkins 是不会自动下载依赖的。
还有,就是这两种方式都无法实现批量安装。
自动安装插件的方法 那么,有什么方法能指定插件的版本,又能自动下载它的依赖,还能批量下载呢?
幸运的是,Jenkins 的 Docker 镜像的代码仓库里的 install-plugins.sh 脚本已经实现。只不过需要我们拿过来小小修改才能使用。笔者修改后创建了相应的代码仓库:jenkins-install-plugins-shell 。链接在文章末尾。
以下是 jenkins-install-plugins-shell 的使用方法: 1. 将代码 clone 到 JENKINS_HOME 目录中。
cd $JENKINS_HOME git clone https://github.com/zacker330/jenkins-install-plugins-shell.git cd jenkins-install-plugins-shell 在 plugins.txt 中加入希望安装的插件 在 jenkins-install-plugins-shell 目录中,有一个 plugins.txt 文件,在文件中写入希望安装的插件及版本号。例如: ansible:1.0 powershell:1.3 执行安装
# Jenkins War 的路径,用于分析 export JENKINS_WAR_PATH=&amp;lt;Jenkins war文件的路径&amp;gt; chmod +x install-plugins.</description>
</item>
<item>
<title>Jenkins 插件开发之旅:两天内从 idea 到发布(上篇)</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/05/2019-05-06-jenkins-plugin-develop-within-two-days-part01/</link>
......
......@@ -35,7 +35,7 @@
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jenkins-zh.cn/wechat/" />
<meta property="og:updated_time" content="2019-04-22T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-04-23T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Wechats">
<meta itemprop="description" content="">
......@@ -164,6 +164,33 @@
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/04/2019-04-23-jenkins-master-shared-home/" class="link primary-color dim">关于 Jenkins master 共享 JENKINS_HOME 目录的实验</a>
</h1>
<div class="lh-copy links">
你觉得能通过共享 JENKINS_HOME 目录实现 Jenkins master 的高可用吗?
<a href="/wechat/articles/2019/04/2019-04-23-jenkins-master-shared-home/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/04/2019-04-22-jenkins-weekly-2.173/" class="link primary-color dim">Jenkins 2.173 发布通知</a>
</h1>
......@@ -401,33 +428,6 @@
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/03/2019-03-20-cdf-launch/" class="link primary-color dim">Jenkins 正在加入持续交付基金会</a>
</h1>
<div class="lh-copy links">
Jenkins 社区牵头成立 CDF
<a href="/wechat/articles/2019/03/2019-03-20-cdf-launch/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -35,7 +35,7 @@
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jenkins-zh.cn/wechat/" />
<meta property="og:updated_time" content="2019-03-13T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-03-20T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Wechats">
<meta itemprop="description" content="">
......@@ -164,6 +164,33 @@
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/03/2019-03-20-cdf-launch/" class="link primary-color dim">Jenkins 正在加入持续交付基金会</a>
</h1>
<div class="lh-copy links">
Jenkins 社区牵头成立 CDF
<a href="/wechat/articles/2019/03/2019-03-20-cdf-launch/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/03/2019-03-13-electron-pipeline-demo/" class="link primary-color dim">Electron 应用的流水线设计</a>
</h1>
......@@ -403,36 +430,6 @@ Copy from the sample.md, then change the content and front matter. All files nam
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/readme/" class="link primary-color dim"></a>
</h1>
<div class="lh-copy links">
Jenkins WeChat Jenkins WeChat subscription account will deliver the messages or events from the Jenkins Community.
All articles should be open-source, every contributor could create a PR. Once we reviewed it, your articles could be released.
We have a robot who can reply to your messages automatically. Unfortunately, its ability is very limitation. It just can understand a few words from here.
TODO List Pick up a task from here, if you&rsquo;re interesting in contribution.
<a href="/wechat/readme/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -163,6 +163,36 @@
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/readme/" class="link primary-color dim"></a>
</h1>
<div class="lh-copy links">
Jenkins WeChat Jenkins WeChat subscription account will deliver the messages or events from the Jenkins Community.
All articles should be open-source, every contributor could create a PR. Once we reviewed it, your articles could be released.
We have a robot who can reply to your messages automatically. Unfortunately, its ability is very limitation. It just can understand a few words from here.
TODO List Pick up a task from here, if you&rsquo;re interesting in contribution.
<a href="/wechat/readme/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/readme/" class="link primary-color dim"></a>
</h1>
......@@ -417,33 +447,6 @@ wechat: wechatid github: linuxsuren terms: - 2018-11-11 根据微信公众号
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2018/12/2018-12-26-official-docker-image/" class="link primary-color dim">Docker Hub 上的官方 Jenkins 镜像</a>
</h1>
<div class="lh-copy links">
正确地使用 Jenkins 镜像
<a href="/wechat/articles/2018/12/2018-12-26-official-docker-image/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -163,6 +163,33 @@
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2018/12/2018-12-26-official-docker-image/" class="link primary-color dim">Docker Hub 上的官方 Jenkins 镜像</a>
</h1>
<div class="lh-copy links">
正确地使用 Jenkins 镜像
<a href="/wechat/articles/2018/12/2018-12-26-official-docker-image/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2018/12/2018-12-12-gasc/" class="link primary-color dim">Jenkins Configuration-as-Code: 看,我都不用手动配置</a>
</h1>
......@@ -405,33 +432,6 @@ Jenkins 中文社区邀您参与社区共同成长 在开源盛会开展的同
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/01/2019-01-23-configuring-jenkins-pipeline-with-yaml-file/" class="link primary-color dim">使用 YAML 文件配置 Jenkins 流水线</a>
</h1>
<div class="lh-copy links">
这也是一种自定义流水线 DSL 的方法
<a href="/wechat/articles/2019/01/2019-01-23-configuring-jenkins-pipeline-with-yaml-file/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -163,6 +163,33 @@
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/01/2019-01-23-configuring-jenkins-pipeline-with-yaml-file/" class="link primary-color dim">使用 YAML 文件配置 Jenkins 流水线</a>
</h1>
<div class="lh-copy links">
这也是一种自定义流水线 DSL 的方法
<a href="/wechat/articles/2019/01/2019-01-23-configuring-jenkins-pipeline-with-yaml-file/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
<div class="relative weight-0" style="max-width: 350px">
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2018/12/2018-12-25-year-in-review/" class="link primary-color dim">回顾 2018: 革新的一年</a>
</h1>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册