Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Jenkins 中文社区
Jenkins 中文社区官方网站
提交
a4d9d234
J
Jenkins 中文社区官方网站
项目概览
Jenkins 中文社区
/
Jenkins 中文社区官方网站
通知
0
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
J
Jenkins 中文社区官方网站
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a4d9d234
编写于
4月 30, 2019
作者:
LinuxSuRen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Auto commit by hugo-plugin.
上级
d552fa03
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
146 addition
and
24 deletion
+146
-24
index.html
index.html
+10
-10
tags/cd/index.html
tags/cd/index.html
+25
-0
tags/ci/index.html
tags/ci/index.html
+25
-0
tags/pipeline/index.html
tags/pipeline/index.html
+25
-0
wechat/Jenkinsfile.groovy
wechat/Jenkinsfile.groovy
+36
-14
wechat/index.html
wechat/index.html
+25
-0
未找到文件。
index.html
浏览文件 @
a4d9d234
...
...
@@ -244,29 +244,29 @@
<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/ha
ngzhou.jpe
g"
></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/ha
cktberfest.jp
g"
></img>
</a>
<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.jp
g"
></img>
<a
href=
"/event/
beijing-2019-04-20
/"
class=
"tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5"
>
<img
width=
"400px"
height=
"200px"
src=
"/images/meetup/
cloud-native-community-day.jpe
g"
></img>
</a>
<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/beijing-2019-
04-20
/"
class=
"tile lazyload cover dib f4 ml1 mr4 bg-black relative mw-100 shadow-5"
>
<img
width=
"400px"
height=
"200px"
src=
"/images/meetup/
cloud-native-community-day.jpe
g"
></img>
<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.jp
g"
></img>
</a>
...
...
@@ -279,8 +279,8 @@
<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.jp
g"
></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.jpe
g"
></img>
</a>
...
...
tags/cd/index.html
浏览文件 @
a4d9d234
...
...
@@ -159,6 +159,31 @@
<section
class=
"flex-ns flex-wrap justify-between w-100"
>
<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-30-what-cicd-tool-should-i-use/"
class=
"link primary-color dim"
>
应该使用什么 CI/CD 工具?
</a>
</h1>
<div
class=
"lh-copy links"
>
了解典型自动化 CI/CD 部署流水线的组件以及您需要的组件。
<a
href=
"/wechat/articles/2019/04/2019-04-30-what-cicd-tool-should-i-use/"
class=
"f6 mt2 db link primary-color dim"
>
查看更多
»
</a>
</div>
</div>
</div>
<div
class=
"relative weight-0"
style=
"max-width: 350px"
>
...
...
tags/ci/index.html
浏览文件 @
a4d9d234
...
...
@@ -159,6 +159,31 @@
<section
class=
"flex-ns flex-wrap justify-between w-100"
>
<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-30-what-cicd-tool-should-i-use/"
class=
"link primary-color dim"
>
应该使用什么 CI/CD 工具?
</a>
</h1>
<div
class=
"lh-copy links"
>
了解典型自动化 CI/CD 部署流水线的组件以及您需要的组件。
<a
href=
"/wechat/articles/2019/04/2019-04-30-what-cicd-tool-should-i-use/"
class=
"f6 mt2 db link primary-color dim"
>
查看更多
»
</a>
</div>
</div>
</div>
<div
class=
"relative weight-0"
style=
"max-width: 350px"
>
...
...
tags/pipeline/index.html
浏览文件 @
a4d9d234
...
...
@@ -159,6 +159,31 @@
<section
class=
"flex-ns flex-wrap justify-between w-100"
>
<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-30-what-cicd-tool-should-i-use/"
class=
"link primary-color dim"
>
应该使用什么 CI/CD 工具?
</a>
</h1>
<div
class=
"lh-copy links"
>
了解典型自动化 CI/CD 部署流水线的组件以及您需要的组件。
<a
href=
"/wechat/articles/2019/04/2019-04-30-what-cicd-tool-should-i-use/"
class=
"f6 mt2 db link primary-color dim"
>
查看更多
»
</a>
</div>
</div>
</div>
<div
class=
"relative weight-0"
style=
"max-width: 350px"
>
...
...
wechat/Jenkinsfile.groovy
浏览文件 @
a4d9d234
def
isEmpty
(
str
){
return
str
==
""
||
str
==
null
}
pipeline
{
agent
any
...
...
@@ -15,16 +11,7 @@ pipeline {
script
{
withChangeSets
(){
if
(
env
.
changePath
!=
""
&&
env
.
changePath
!=
null
&&
env
.
changePath
.
endsWith
(
".md"
))
{
def
articles
=
readYaml
file:
env
.
changePath
def
article
=
articles
[
0
]
if
(
isEmpty
(
article
.
title
)
||
isEmpty
(
article
.
description
)
||
isEmpty
(
article
.
author
)
||
isEmpty
(
article
.
poster
)){
error
"title, description, author or poster can not be empty"
}
if
(!
isEmpty
(
article
.
translator
)
&&
isEmpty
(
article
.
original
))
{
error
"current article is translated from the origin one, please provide the original link"
}
checkArticleMeta
(
env
.
changePath
)
}
}
}
...
...
@@ -33,5 +20,40 @@ pipeline {
}
}
def
checkArticleMeta
(
filePath
){
def
articleText
=
readFile
encoding:
'UTF-8'
,
file:
filePath
def
articleYamlText
=
getYamlMeta
(
articleText
)
if
(
isEmpty
(
articleYamlText
)){
error
"cannot find the yaml meta from current article"
}
def
articles
=
readYaml
file:
articleYamlText
def
article
=
articles
[
0
]
if
(
isEmpty
(
article
.
title
)
||
isEmpty
(
article
.
description
)
||
isEmpty
(
article
.
author
)
||
isEmpty
(
article
.
poster
)){
error
"title, description, author or poster can not be empty"
}
if
(!
isEmpty
(
article
.
translator
)
&&
isEmpty
(
article
.
original
))
{
error
"current article is translated from the origin one, please provide the original link"
}
}
def
isEmpty
(
str
){
return
str
==
""
||
str
==
null
}
def
getYamlMeta
(
txt
){
def
firstIndex
=
txt
.
indexOf
(
'---'
)
if
(
firstIndex
==
-
1
){
return
""
}
def
secondIndex
=
txt
.
indexOf
(
'---'
,
firstIndex
+
3
)
if
(
secondIndex
==
-
1
){
return
""
}
return
txt
.
substring
(
firstIndex
,
secondIndex
+
3
)
}
// DSL withChangeSets has not been released, see also
// https://github.com/LinuxSuRen/change-handler
\ No newline at end of file
wechat/index.html
浏览文件 @
a4d9d234
...
...
@@ -159,6 +159,31 @@
<section
class=
"flex-ns flex-wrap justify-between w-100"
>
<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-30-what-cicd-tool-should-i-use/"
class=
"link primary-color dim"
>
应该使用什么 CI/CD 工具?
</a>
</h1>
<div
class=
"lh-copy links"
>
了解典型自动化 CI/CD 部署流水线的组件以及您需要的组件。
<a
href=
"/wechat/articles/2019/04/2019-04-30-what-cicd-tool-should-i-use/"
class=
"f6 mt2 db link primary-color dim"
>
查看更多
»
</a>
</div>
</div>
</div>
<div
class=
"relative weight-0"
style=
"max-width: 350px"
>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录