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

Auto commit by hugo-plugin.

上级 d2281598
......@@ -39,7 +39,7 @@
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jenkins-zh.cn/" />
<meta property="og:updated_time" content="2019-07-04T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-07-08T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Jenkins 中文社区">
<meta itemprop="description" content="">
......@@ -279,9 +279,6 @@ var trackOutboundLink = function(id, url) {
<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>
......@@ -296,6 +293,13 @@ var trackOutboundLink = function(id, url) {
<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/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>
......@@ -310,10 +314,6 @@ var trackOutboundLink = function(id, url) {
<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>
......
......@@ -12,6 +12,19 @@
"original": "",
"poster": ""
},
{
"uri": "https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-08-wechat-answer-1/",
"title": "Jenkins 中文社区技术交流微信群问题集之一",
"type": "wechat",
"date": "2019-07-08 00:00:00 +0000 UTC",
"tags": ["pipeline"],
"description": "群里讨论过的问题(使用方法、缺陷)太多,无法全部包含在一篇文章中。",
"content": " 申明:下文中的问题是群友发起的,回答则是由笔者收集整理的。\n1. 同一流水线,如何做某个阶段定时执行代码扫描 这个需求的意思是存在一条流水线,流水线中的阶段为:构建阶段 \u0026ndash;\u0026gt; 代码扫描阶段 \u0026ndash;\u0026gt; 发布测试环境阶段 \u0026ndash;\u0026gt; \u0026hellip; 而提问者希望当有代码提交时,就执行整条流水线。当到某个时间点时,就只执行扫描阶段。\n回答一 当代码没有变化,我们为什么要重复执行扫描呢?\n回答二 换成两个流水线,一个提交触发,一个定时触发\n回答三 一条流水线加个开关设置是否跳过扫描。\n2. 有人做过增量包构建么? 有人做过增量包构建么?问下要用哪些插件,怎么做? 经确认,提问人的需求是有一个代码仓库 x,然后 x 里有 a,b,c 三个模块,开发提交了 a 模块的代码,这时,只打包 a 模块的制品。\n 回答一 要做的是在流水线里判断提交代码中修改了哪个模块,然后执行你的 ant 命令指定构建某个模块就好了。代码 demo 如下:\npipeline{ agent any stages{ stage('build a'){ when{ changeset \u0026quot;a/**\u0026quot; } steps{ echo \u0026quot;build a\u0026quot; } } stage('build b'){ when{ changeset \u0026quot;b/**\u0026quot; } steps{ echo \u0026quot;build b\u0026quot; } } } } 回答二 增量包,四五年前我有过相关实践,构建工具也是 ant。记得当初是根据修改的文件路径,解析出 ant target 列表,然后根据事先声明好的依赖关系对它排序,然后执行 ant 构建命令,最后将生成的二进制包挑出来生成增量包,大致这么个思路。\n3. post 里如何指定 agent 请教一下,jenkinsfile中 post里面可以指定agent吗?\n 回答 post { always { node('master') { cleanWs() } } } 笔者注:node('\u0026lt;node\u0026gt;') 中的 \u0026lt;node\u0026gt; 可以是 agent 节点名称,也可以是 agent 的标签。\n4. windows 上 无法使用 curl 有些步骤是跑在 Windows 节点上,在 Windows 上又希望能发 http 请求。\n 回答 这时,应该使用 HTTPRequest 插件,它是平台无关的。\n4. 怎么把 slave 的内容 copy 到 master 机器上? 因为比如我用有一个 windows 节点,然后我代码拉取后,需要进行一些测试,测试完成后生成数据和 HTML 报告,这部分测试全都在节点上完成,我想把测试完成后到数据发到 master 上,然后由 master 生成 html 报告\n 回答 不确定,我是否理解正确。可以考虑这样做,把你现在的事情分成两个阶段,阶段一在 windows 上测试,然后将数据和 html 报告上传到某个地方,阶段二,将数据和报告下载回来,比如下载到 master 上。接着,想干嘛就干嘛了。\n5. httpRequest 如何发 POST 请求 httprequest这个插件 请求body这块一行一个参数? 回答 httpRequest authentication: credentialName, contentType: 'APPLICATION_JSON_UTF8', httpMode: 'POST', requestBody: \u0026quot;\u0026quot;\u0026quot;{\u0026quot;reportJson\u0026quot;: \u0026quot;111\u0026quot;,\u0026quot;id\u0026quot;: \u0026quot;111\u0026quot;,\u0026quot;executeNum\u0026quot;: 111}\u0026quot;\u0026quot;\u0026quot;, responseHandle: 'LEAVE_OPEN', url: \u0026quot;http://127.0.0.1/echo\u0026quot; 6. 我仓库特多,怎么设计流水线 我的仓库一共有4个 分别存放 代码 战斗脚本 资源 协议。4个代码仓库各有3个分支 名字都是对应的,比如1号仓库分支 master develop production. 2号仓库 也是这几个分支 以此类推 我拉取代码进行打包的时候 会拉取 4个仓库名字都叫 master 的分支 或者名字都叫 develop 的分支进行打包 现在问题就出在 我拉取4分仓库都叫 master 的分支的时候 拉取完代码后 最后一个仓库的代码会把前个仓库的代码覆盖掉,后来有老哥给了建议 用 dir 分别存到 workspace 下的好几个目录 现在遇到的问题是 我多分支流水线第一次启动时,会把1号仓库的代码直接拉到 workspace 下 我的问题就是可以不可在多分支流水线第一次启动时,不要拉取代码\n 回答 建立一条流水线,接受 gitlab 触发,然后根据触发请求中的数据,决定拉取哪个代码仓库。参考 Generic Webhook Trigger 插件。\n7. 流水线中如何指定工作目录 pipeline 中怎么指定这个流水线的工作目录,我在开头定义 WORKSPACE 但是没用\n 回答 8. 如何在 pipeline 中使用第三方 jar 包 请教下 pipeline 需要引用第三方 jar 包时,要放在哪里才能被 import 进来啊,我放到 classpath 下还是不行,总是提示找不到包。在本地执行 groovy,impor t进来没有问题\n 回答 把 jar 包放到 tomcat 安装 jenkins 的目录下的 lib 里貌似能解决。\n后记 如果读者朋友在使用 Jenkins 过程中也遇到各种问题,可关注Jenkins微信公众号。后台回复“微信群”入群。群里会有热心朋友回复。\n",
"auhtor": "zacker330",
"translator": "",
"original": "",
"poster": "./2019-07-08-wechat-answer-1/wechat.png"
},
{
"uri": "https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-04-performance-testing-jenkins/",
"title": "Jenkins 插件的微基准测试框架",
......@@ -1615,7 +1628,7 @@
"uri": "https://jenkins-zh.cn/",
"title": "Jenkins 中文社区",
"type": "page",
"date": "2019-07-04 00:00:00 +0000 UTC",
"date": "2019-07-08 00:00:00 +0000 UTC",
"tags": [],
"description": "",
"content": "",
......@@ -1888,7 +1901,7 @@
"uri": "https://jenkins-zh.cn/tags/pipeline/",
"title": "Pipeline",
"type": "tags",
"date": "2019-07-01 00:00:00 +0000 UTC",
"date": "2019-07-08 00:00:00 +0000 UTC",
"tags": [],
"description": "",
"content": "",
......@@ -2148,7 +2161,7 @@
"uri": "https://jenkins-zh.cn/wechat/",
"title": "Wechats",
"type": "wechat",
"date": "2019-07-04 00:00:00 +0000 UTC",
"date": "2019-07-08 00:00:00 +0000 UTC",
"tags": [],
"description": "",
"content": "",
......
......@@ -6,7 +6,7 @@
<description>Recent content on Jenkins 中文社区</description>
<generator>Hugo -- gohugo.io</generator>
<language>zh-CN</language>
<lastBuildDate>Thu, 04 Jul 2019 00:00:00 +0000</lastBuildDate>
<lastBuildDate>Mon, 08 Jul 2019 00:00:00 +0000</lastBuildDate>
<atom:link href="https://jenkins-zh.cn/index.xml" rel="self" type="application/rss+xml" />
......@@ -24,6 +24,22 @@
GitHub 请您使用同一个 GitHub 账号来与大家交流,不欢迎使用所谓的“小号”。</description>
</item>
<item>
<title>Jenkins 中文社区技术交流微信群问题集之一</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-08-wechat-answer-1/</link>
<pubDate>Mon, 08 Jul 2019 00:00:00 +0000</pubDate>
<guid>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-08-wechat-answer-1/</guid>
<description>申明:下文中的问题是群友发起的,回答则是由笔者收集整理的。
1. 同一流水线,如何做某个阶段定时执行代码扫描 这个需求的意思是存在一条流水线,流水线中的阶段为:构建阶段 &amp;ndash;&amp;gt; 代码扫描阶段 &amp;ndash;&amp;gt; 发布测试环境阶段 &amp;ndash;&amp;gt; &amp;hellip; 而提问者希望当有代码提交时,就执行整条流水线。当到某个时间点时,就只执行扫描阶段。
回答一 当代码没有变化,我们为什么要重复执行扫描呢?
回答二 换成两个流水线,一个提交触发,一个定时触发
回答三 一条流水线加个开关设置是否跳过扫描。
2. 有人做过增量包构建么? 有人做过增量包构建么?问下要用哪些插件,怎么做? 经确认,提问人的需求是有一个代码仓库 x,然后 x 里有 a,b,c 三个模块,开发提交了 a 模块的代码,这时,只打包 a 模块的制品。
回答一 要做的是在流水线里判断提交代码中修改了哪个模块,然后执行你的 ant 命令指定构建某个模块就好了。代码 demo 如下:
pipeline{ agent any stages{ stage(&#39;build a&#39;){ when{ changeset &amp;quot;a/**&amp;quot; } steps{ echo &amp;quot;build a&amp;quot; } } stage(&#39;build b&#39;){ when{ changeset &amp;quot;b/**&amp;quot; } steps{ echo &amp;quot;build b&amp;quot; } } } } 回答二 增量包,四五年前我有过相关实践,构建工具也是 ant。记得当初是根据修改的文件路径,解析出 ant target 列表,然后根据事先声明好的依赖关系对它排序,然后执行 ant 构建命令,最后将生成的二进制包挑出来生成增量包,大致这么个思路。</description>
</item>
<item>
<title>Jenkins 插件的微基准测试框架</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-04-performance-testing-jenkins/</link>
......
User-agent:*
Allow:*
\ No newline at end of file
Allow: /wechat
Allow: /about
Allow: /event
Sitemap: https://jenkins-zh.cn/sitemap.xml
......@@ -6,6 +6,11 @@
<loc>https://jenkins-zh.cn/about/code-of-conduct/</loc>
</url>
<url>
<loc>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-08-wechat-answer-1/</loc>
<lastmod>2019-07-08T00:00:00+00:00</lastmod>
</url>
<url>
<loc>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-04-performance-testing-jenkins/</loc>
<lastmod>2019-07-04T00:00:00+00:00</lastmod>
......@@ -625,7 +630,7 @@
<url>
<loc>https://jenkins-zh.cn/</loc>
<lastmod>2019-07-04T00:00:00+00:00</lastmod>
<lastmod>2019-07-08T00:00:00+00:00</lastmod>
<priority>0</priority>
</url>
......@@ -738,7 +743,7 @@
<url>
<loc>https://jenkins-zh.cn/tags/pipeline/</loc>
<lastmod>2019-07-01T00:00:00+00:00</lastmod>
<lastmod>2019-07-08T00:00:00+00:00</lastmod>
<priority>0</priority>
</url>
......@@ -852,7 +857,7 @@
<url>
<loc>https://jenkins-zh.cn/wechat/</loc>
<lastmod>2019-07-04T00:00:00+00:00</lastmod>
<lastmod>2019-07-08T00:00:00+00:00</lastmod>
<priority>0</priority>
</url>
......
......@@ -1615,6 +1615,12 @@ var trackOutboundLink = function(id, url) {
</a>
</h2>
<h3>
<a href="https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-08-wechat-answer-1/" class="link blue">
Jenkins 中文社区技术交流微信群问题集之一
</a>
</h3>
<h3>
<a href="https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-01-introducing-the-jenkins-templating-engine/" class="link blue">
介绍 Jenkins 模板引擎
......
......@@ -473,7 +473,7 @@
<item>
<title>Pipeline</title>
<link>https://jenkins-zh.cn/tags/pipeline/</link>
<pubDate>Mon, 01 Jul 2019 00:00:00 +0000</pubDate>
<pubDate>Mon, 08 Jul 2019 00:00:00 +0000</pubDate>
<guid>https://jenkins-zh.cn/tags/pipeline/</guid>
<description></description>
......
......@@ -38,7 +38,7 @@
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jenkins-zh.cn/tags/pipeline/" />
<meta property="og:updated_time" content="2019-07-01T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-07-08T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Pipeline">
<meta itemprop="description" content="">
......@@ -199,6 +199,33 @@ var trackOutboundLink = function(id, url) {
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/07/2019-07-08-wechat-answer-1/" class="link primary-color dim">Jenkins 中文社区技术交流微信群问题集之一</a>
</h1>
<div class="lh-copy links">
群里讨论过的问题(使用方法、缺陷)太多,无法全部包含在一篇文章中。
<a href="/wechat/articles/2019/07/2019-07-08-wechat-answer-1/" 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/07/2019-07-01-introducing-the-jenkins-templating-engine/" class="link primary-color dim">介绍 Jenkins 模板引擎</a>
</h1>
......
......@@ -6,11 +6,27 @@
<description>Recent content in Pipeline on Jenkins 中文社区</description>
<generator>Hugo -- gohugo.io</generator>
<language>zh-CN</language>
<lastBuildDate>Mon, 01 Jul 2019 00:00:00 +0000</lastBuildDate>
<lastBuildDate>Mon, 08 Jul 2019 00:00:00 +0000</lastBuildDate>
<atom:link href="https://jenkins-zh.cn/tags/pipeline/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Jenkins 中文社区技术交流微信群问题集之一</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-08-wechat-answer-1/</link>
<pubDate>Mon, 08 Jul 2019 00:00:00 +0000</pubDate>
<guid>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-08-wechat-answer-1/</guid>
<description>申明:下文中的问题是群友发起的,回答则是由笔者收集整理的。
1. 同一流水线,如何做某个阶段定时执行代码扫描 这个需求的意思是存在一条流水线,流水线中的阶段为:构建阶段 &amp;ndash;&amp;gt; 代码扫描阶段 &amp;ndash;&amp;gt; 发布测试环境阶段 &amp;ndash;&amp;gt; &amp;hellip; 而提问者希望当有代码提交时,就执行整条流水线。当到某个时间点时,就只执行扫描阶段。
回答一 当代码没有变化,我们为什么要重复执行扫描呢?
回答二 换成两个流水线,一个提交触发,一个定时触发
回答三 一条流水线加个开关设置是否跳过扫描。
2. 有人做过增量包构建么? 有人做过增量包构建么?问下要用哪些插件,怎么做? 经确认,提问人的需求是有一个代码仓库 x,然后 x 里有 a,b,c 三个模块,开发提交了 a 模块的代码,这时,只打包 a 模块的制品。
回答一 要做的是在流水线里判断提交代码中修改了哪个模块,然后执行你的 ant 命令指定构建某个模块就好了。代码 demo 如下:
pipeline{ agent any stages{ stage(&#39;build a&#39;){ when{ changeset &amp;quot;a/**&amp;quot; } steps{ echo &amp;quot;build a&amp;quot; } } stage(&#39;build b&#39;){ when{ changeset &amp;quot;b/**&amp;quot; } steps{ echo &amp;quot;build b&amp;quot; } } } } 回答二 增量包,四五年前我有过相关实践,构建工具也是 ant。记得当初是根据修改的文件路径,解析出 ant target 列表,然后根据事先声明好的依赖关系对它排序,然后执行 ant 构建命令,最后将生成的二进制包挑出来生成增量包,大致这么个思路。</description>
</item>
<item>
<title>介绍 Jenkins 模板引擎</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-01-introducing-the-jenkins-templating-engine/</link>
......
......@@ -642,8 +642,8 @@ 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/07/2019-07-01-introducing-the-jenkins-templating-engine/" class="link">
介绍 Jenkins 模板引擎
<a href="/wechat/articles/2019/07/2019-07-08-wechat-answer-1/" class="link">
Jenkins 中文社区技术交流微信群问题集之一
</a>
</li>
......@@ -654,6 +654,15 @@ f6 ph3 pv1 br2 dib tc ttu mv3 bg-primary-color white hover-bg-green link
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/07/2019-07-01-introducing-the-jenkins-templating-engine/" class="link">
介绍 Jenkins 模板引擎
</a>
</li>
<li class="db dib-l mb2 mr3">
<a href="/wechat/articles/2019/06/2019-06-10-jenkins-pipeline-workshop/" class="link">
还在苦恼不会写 Jenkins 流水线?来场工作坊!
......
......@@ -308,6 +308,13 @@ var trackOutboundLink = function(id, url) {
<h2>参考</h2>
<ul>
<li><a href="/wechat/articles/2019/07/2019-07-08-wechat-answer-1/">Jenkins 中文社区技术交流微信群问题集之一</a></li>
</ul>
</div>
</div>
......
......@@ -190,8 +190,17 @@ var trackOutboundLink = function(id, url) {
<h3 class="f4 dib author">
eryajf
</h3>
<p class="lh-copy measure center mt0 f6 black-60 bio">
悟已往之不谏,知来者之可追。实迷途其未远,觉今是而昨非。
</p>
<a href="" target="_blank" class="link dim v-mid dib">
<a href="https://github.com/eryajf" target="_blank" class="link dim v-mid dib">
<svg version="1.1" fill="gray" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="18" viewBox="0 0 27 32">
<path d="M9.28 21.44q0.064-0.128-0.064-0.256-0.16-0.128-0.256-0.032-0.064 0.128 0.064 0.224 0.16 0.128 0.256 0.064zM8.768 20.704q-0.096-0.128-0.224-0.096-0.096 0.096 0 0.224 0.128 0.16 0.224 0.096t0-0.224zM8.032 19.968q0.032-0.064-0.096-0.128-0.128-0.032-0.128 0.032-0.064 0.096 0.064 0.16 0.16 0.032 0.16-0.064zM8.416 20.384q0.032 0 0.032-0.064t-0.064-0.096q-0.128-0.128-0.192-0.064t0.032 0.192q0.096 0.096 0.192 0.032zM9.952 21.728q0.032-0.128-0.16-0.192-0.16-0.064-0.224 0.064t0.16 0.192q0.16 0.064 0.224-0.064zM10.688 21.792q0-0.16-0.192-0.16t-0.192 0.16 0.192 0.128 0.192-0.128zM11.392 21.664q-0.032-0.128-0.224-0.096t-0.16 0.16q0.032 0.16 0.192 0.096t0.192-0.16zM22.848 16q0-3.776-2.656-6.464t-6.464-2.688-6.464 2.688-2.688 6.464q0 2.976 1.76 5.376t4.48 3.296q0.32 0.064 0.48-0.096t0.16-0.352q0-0.928-0.032-1.696-0.096 0.032-0.256 0.064t-0.64 0.032-0.864-0.096-0.768-0.352-0.544-0.736q-0.416-1.056-1.024-1.312-0.032-0.032-0.064-0.064l-0.16-0.16t-0.096-0.16 0.064-0.128 0.352-0.064q0.096 0 0.256 0.032t0.544 0.288 0.576 0.64q0.288 0.48 0.672 0.736t0.768 0.256 0.704-0.064 0.512-0.16q0.128-0.864 0.608-1.248-0.896-0.096-1.536-0.32t-1.312-0.704-0.992-1.344-0.352-2.144q0-1.408 0.96-2.464-0.448-1.088 0.096-2.4 0.32-0.128 0.96 0.128t1.088 0.512l0.448 0.288q1.056-0.288 2.304-0.288t2.272 0.288q0.192-0.128 0.512-0.32t0.992-0.448 1.024-0.16q0.512 1.312 0.096 2.4 0.928 1.056 0.928 2.464 0 1.024-0.256 1.792t-0.64 1.248-0.928 0.8-1.12 0.448-1.216 0.224q0.608 0.544 0.608 1.696 0 0.704 0 1.6t-0.032 0.896q0 0.224 0.16 0.352t0.48 0.096q2.752-0.928 4.512-3.296t1.728-5.376zM27.424 7.424v17.152q0 2.112-1.504 3.616t-3.648 1.536h-17.12q-2.144 0-3.648-1.536t-1.504-3.616v-17.152q0-2.112 1.504-3.616t3.648-1.536h17.12q2.144 0 3.648 1.536t1.504 3.616z"></path>
</svg>
......
......@@ -260,6 +260,14 @@ var trackOutboundLink = function(id, url) {
</a>
<a href="https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-08-wechat-answer-1/" 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"/>
</svg>
</a>
<a href="https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-01-introducing-the-jenkins-templating-engine/" class="dib f6 pr1 hover-bg-light-gray br-100" title="介绍 Jenkins 模板引擎">
......
......@@ -38,7 +38,7 @@
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jenkins-zh.cn/wechat/" />
<meta property="og:updated_time" content="2019-07-04T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-07-08T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Wechats">
<meta itemprop="description" content="">
......@@ -199,6 +199,33 @@ var trackOutboundLink = function(id, url) {
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/07/2019-07-08-wechat-answer-1/" class="link primary-color dim">Jenkins 中文社区技术交流微信群问题集之一</a>
</h1>
<div class="lh-copy links">
群里讨论过的问题(使用方法、缺陷)太多,无法全部包含在一篇文章中。
<a href="/wechat/articles/2019/07/2019-07-08-wechat-answer-1/" 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/07/2019-07-04-performance-testing-jenkins/" class="link primary-color dim">Jenkins 插件的微基准测试框架</a>
</h1>
......@@ -436,33 +463,6 @@ var trackOutboundLink = function(id, url) {
<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-28-jenkins-pipeline-shared-lib-unit-test/" class="link primary-color dim">如何对 Jenkins 共享库进行单元测试</a>
</h1>
<div class="lh-copy links">
包括该单元测试框架的原理介绍
<a href="/wechat/articles/2019/05/2019-05-28-jenkins-pipeline-shared-lib-unit-test/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -6,11 +6,27 @@
<description>Recent content in Wechats on Jenkins 中文社区</description>
<generator>Hugo -- gohugo.io</generator>
<language>zh-CN</language>
<lastBuildDate>Thu, 04 Jul 2019 00:00:00 +0000</lastBuildDate>
<lastBuildDate>Mon, 08 Jul 2019 00:00:00 +0000</lastBuildDate>
<atom:link href="https://jenkins-zh.cn/wechat/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Jenkins 中文社区技术交流微信群问题集之一</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-08-wechat-answer-1/</link>
<pubDate>Mon, 08 Jul 2019 00:00:00 +0000</pubDate>
<guid>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-08-wechat-answer-1/</guid>
<description>申明:下文中的问题是群友发起的,回答则是由笔者收集整理的。
1. 同一流水线,如何做某个阶段定时执行代码扫描 这个需求的意思是存在一条流水线,流水线中的阶段为:构建阶段 &amp;ndash;&amp;gt; 代码扫描阶段 &amp;ndash;&amp;gt; 发布测试环境阶段 &amp;ndash;&amp;gt; &amp;hellip; 而提问者希望当有代码提交时,就执行整条流水线。当到某个时间点时,就只执行扫描阶段。
回答一 当代码没有变化,我们为什么要重复执行扫描呢?
回答二 换成两个流水线,一个提交触发,一个定时触发
回答三 一条流水线加个开关设置是否跳过扫描。
2. 有人做过增量包构建么? 有人做过增量包构建么?问下要用哪些插件,怎么做? 经确认,提问人的需求是有一个代码仓库 x,然后 x 里有 a,b,c 三个模块,开发提交了 a 模块的代码,这时,只打包 a 模块的制品。
回答一 要做的是在流水线里判断提交代码中修改了哪个模块,然后执行你的 ant 命令指定构建某个模块就好了。代码 demo 如下:
pipeline{ agent any stages{ stage(&#39;build a&#39;){ when{ changeset &amp;quot;a/**&amp;quot; } steps{ echo &amp;quot;build a&amp;quot; } } stage(&#39;build b&#39;){ when{ changeset &amp;quot;b/**&amp;quot; } steps{ echo &amp;quot;build b&amp;quot; } } } } 回答二 增量包,四五年前我有过相关实践,构建工具也是 ant。记得当初是根据修改的文件路径,解析出 ant target 列表,然后根据事先声明好的依赖关系对它排序,然后执行 ant 构建命令,最后将生成的二进制包挑出来生成增量包,大致这么个思路。</description>
</item>
<item>
<title>Jenkins 插件的微基准测试框架</title>
<link>https://jenkins-zh.cn/wechat/articles/2019/07/2019-07-04-performance-testing-jenkins/</link>
......
......@@ -38,7 +38,7 @@
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jenkins-zh.cn/wechat/" />
<meta property="og:updated_time" content="2019-05-27T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-05-28T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Wechats">
<meta itemprop="description" content="">
......@@ -199,6 +199,33 @@ var trackOutboundLink = function(id, url) {
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/05/2019-05-28-jenkins-pipeline-shared-lib-unit-test/" class="link primary-color dim">如何对 Jenkins 共享库进行单元测试</a>
</h1>
<div class="lh-copy links">
包括该单元测试框架的原理介绍
<a href="/wechat/articles/2019/05/2019-05-28-jenkins-pipeline-shared-lib-unit-test/" 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/05/2019-05-27-docs-sig-announcement/" class="link primary-color dim">Jenkins 文档特别兴趣小组</a>
</h1>
......@@ -436,33 +463,6 @@ var trackOutboundLink = function(id, url) {
<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-14-devops-jenkins-credential-manage/" class="link primary-color dim">基于 Jenkins 的 DevOps 平台应该如何设计凭证管理</a>
</h1>
<div class="lh-copy links">
一种基于 Jenkins 的 DevOps 平台建设思路
<a href="/wechat/articles/2019/05/2019-05-14-devops-jenkins-credential-manage/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -38,7 +38,7 @@
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jenkins-zh.cn/wechat/" />
<meta property="og:updated_time" content="2019-05-13T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-05-14T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Wechats">
<meta itemprop="description" content="">
......@@ -199,6 +199,33 @@ var trackOutboundLink = function(id, url) {
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/05/2019-05-14-devops-jenkins-credential-manage/" class="link primary-color dim">基于 Jenkins 的 DevOps 平台应该如何设计凭证管理</a>
</h1>
<div class="lh-copy links">
一种基于 Jenkins 的 DevOps 平台建设思路
<a href="/wechat/articles/2019/05/2019-05-14-devops-jenkins-credential-manage/" 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/05/2019-05-13-jenkins-book-gift/" class="link primary-color dim">Jenkins 公众号送书福利</a>
</h1>
......@@ -436,33 +463,6 @@ var trackOutboundLink = function(id, url) {
<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-26-progressive-delivery-with-jenkins-x/" class="link primary-color dim">使用 Jenkins X 渐进式交付</a>
</h1>
<div class="lh-copy links">
使用 Jenkins X 渐进式交付
<a href="/wechat/articles/2019/04/2019-04-26-progressive-delivery-with-jenkins-x/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -38,7 +38,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-25T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-04-26T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Wechats">
<meta itemprop="description" content="">
......@@ -199,6 +199,33 @@ var trackOutboundLink = function(id, url) {
<div class="bg-white mb2 pa3 pa4-l gray">
<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>
</h1>
<div class="lh-copy links">
使用 Jenkins X 渐进式交付
<a href="/wechat/articles/2019/04/2019-04-26-progressive-delivery-with-jenkins-x/" 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-25-jenkins-ansible-nginx/" class="link primary-color dim">使用 Jenkins &#43; Ansible 实现自动化部署 Nginx</a>
</h1>
......@@ -436,33 +463,6 @@ var trackOutboundLink = function(id, url) {
<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-08-becoming-contributor-intro/" class="link primary-color dim">介绍:成为一名 Jenkins 贡献者的旅程</a>
</h1>
<div class="lh-copy links">
如何从零开始成为开源社区贡献者
<a href="/wechat/articles/2019/04/2019-04-08-becoming-contributor-intro/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -38,7 +38,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-03T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-04-08T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Wechats">
<meta itemprop="description" content="">
......@@ -199,6 +199,33 @@ var trackOutboundLink = function(id, url) {
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/04/2019-04-08-becoming-contributor-intro/" class="link primary-color dim">介绍:成为一名 Jenkins 贡献者的旅程</a>
</h1>
<div class="lh-copy links">
如何从零开始成为开源社区贡献者
<a href="/wechat/articles/2019/04/2019-04-08-becoming-contributor-intro/" 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-03-the-benefits-and-challenges-of-continuous-integration/" class="link primary-color dim">持续集成的收益与挑战</a>
</h1>
......@@ -436,33 +463,6 @@ var trackOutboundLink = function(id, url) {
<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/02/2019-02-20-java11-preview-availability/" class="link primary-color dim">Java 11 预览支持已在 Jenkins 2.155&#43; 中可用</a>
</h1>
<div class="lh-copy links">
Java 11 预览支持已在 Jenkins 2.155+ 中可用
<a href="/wechat/articles/2019/02/2019-02-20-java11-preview-availability/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -38,7 +38,7 @@
<meta property="og:type" content="website" />
<meta property="og:url" content="https://jenkins-zh.cn/wechat/" />
<meta property="og:updated_time" content="2019-02-13T00:00:00&#43;00:00"/>
<meta property="og:updated_time" content="2019-02-20T00:00:00&#43;00:00"/>
<meta itemprop="name" content="Wechats">
<meta itemprop="description" content="">
......@@ -199,6 +199,33 @@ var trackOutboundLink = function(id, url) {
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/02/2019-02-20-java11-preview-availability/" class="link primary-color dim">Java 11 预览支持已在 Jenkins 2.155&#43; 中可用</a>
</h1>
<div class="lh-copy links">
Java 11 预览支持已在 Jenkins 2.155+ 中可用
<a href="/wechat/articles/2019/02/2019-02-20-java11-preview-availability/" 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/02/2019-02-13-outreachy-audit-log-plugin/" class="link primary-color dim">Jenkins 对审计日志的支持</a>
</h1>
......@@ -454,41 +481,6 @@ wechat: wechatid github: linuxsuren terms: - 2018-11-11 Duty All articles shoul
<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/management/operators/readme/" class="link primary-color dim"></a>
</h1>
<div class="lh-copy links">
关于 本文描述如何发布 Jenkins 官方微信公众号文章。
发布时间 我们在每周一、三、五晚上九至十点发布文章。
每次发布,同一类型的文章只能包含一篇。需要在同一天发布多篇文章的话,顺序如下:
活动、通知 原创 翻译 转载 申请权限 如果您愿意帮忙发布 Jenkins 微信公众号文章,您需要新建(或更新)如下的示例文件,并创建一个 PR 。文件名的格式如:githubid-short-term.yaml.
示例文件:
wechat: wechatid github: linuxsuren terms: - 2018-11-11 根据微信公众号平台的规定,可以绑定5个长期运营者, 20个短期(一个月)运营者。上面的字段 terms 为管理周期。
短期运营者 有至少一篇文章被发布在公众号上,熟悉发布流程,认真负责。
长期运营者 有至少三次的短期运营者经历,并经过小组全体成员同意。
职责 所有的文章,都需要提交到该仓库中。您的任务是从该仓库中拷贝文章,然后在公众号平台上创建,进行必要的排版处理。在发布之前,需要把预览链接发送到给大家进行审查。最后,没问题的话,设置发送时间。注意,公众号中的内容必须与该仓库保持一致。
<a href="/wechat/management/operators/readme/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -198,6 +198,41 @@ var trackOutboundLink = function(id, url) {
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/management/operators/readme/" class="link primary-color dim"></a>
</h1>
<div class="lh-copy links">
关于 本文描述如何发布 Jenkins 官方微信公众号文章。
发布时间 我们在每周一、三、五晚上九至十点发布文章。
每次发布,同一类型的文章只能包含一篇。需要在同一天发布多篇文章的话,顺序如下:
活动、通知 原创 翻译 转载 申请权限 如果您愿意帮忙发布 Jenkins 微信公众号文章,您需要新建(或更新)如下的示例文件,并创建一个 PR 。文件名的格式如:githubid-short-term.yaml.
示例文件:
wechat: wechatid github: linuxsuren terms: - 2018-11-11 根据微信公众号平台的规定,可以绑定5个长期运营者, 20个短期(一个月)运营者。上面的字段 terms 为管理周期。
短期运营者 有至少一篇文章被发布在公众号上,熟悉发布流程,认真负责。
长期运营者 有至少三次的短期运营者经历,并经过小组全体成员同意。
职责 所有的文章,都需要提交到该仓库中。您的任务是从该仓库中拷贝文章,然后在公众号平台上创建,进行必要的排版处理。在发布之前,需要把预览链接发送到给大家进行审查。最后,没问题的话,设置发送时间。注意,公众号中的内容必须与该仓库保持一致。
<a href="/wechat/management/operators/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/2018/12/2018-12-19-jenkins-survey/" class="link primary-color dim">2018年 Jenkins 国内使用情况调查问卷</a>
</h1>
......@@ -440,33 +475,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/02/2019-02-27-windows-installers/" class="link primary-color dim">Windows 安装程序更新</a>
</h1>
<div class="lh-copy links">
平台特别兴趣小组提供了 Windows 安装程序的更新
<a href="/wechat/articles/2019/02/2019-02-27-windows-installers/" class="f6 mt2 db link primary-color dim">
查看更多 &raquo;
</a>
</div>
</div>
</div>
</section>
</div>
......
......@@ -198,6 +198,33 @@ var trackOutboundLink = function(id, url) {
<div class="bg-white mb2 pa3 pa4-l gray">
<h1 class="near-black f3">
<a href="/wechat/articles/2019/02/2019-02-27-windows-installers/" class="link primary-color dim">Windows 安装程序更新</a>
</h1>
<div class="lh-copy links">
平台特别兴趣小组提供了 Windows 安装程序的更新
<a href="/wechat/articles/2019/02/2019-02-27-windows-installers/" 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-12-what-is-cicd/" class="link primary-color dim">什么是 CI/CD?</a>
</h1>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册