Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Jenkins 中文社区
Jenkins 中文社区
提交
f8a7f97b
J
Jenkins 中文社区
项目概览
Jenkins 中文社区
/
Jenkins 中文社区
通知
5
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,发现更多精彩内容 >>
未验证
提交
f8a7f97b
编写于
5月 16, 2020
作者:
W
walker0921
提交者:
GitHub
5月 16, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[原创 2020-05-16] a-thank-you-letter-for-jenkins-fans (#277)
上级
1ba2ad01
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
68 addition
and
0 deletion
+68
-0
content/wechat/articles/2020/05/2020-05-16-a-thank-you-letter-for-jenkins-fans.md
...2020/05/2020-05-16-a-thank-you-letter-for-jenkins-fans.md
+68
-0
content/wechat/articles/2020/05/2020-05-16-a-thank-you-letter-for-jenkins-fans/cover.png
.../2020-05-16-a-thank-you-letter-for-jenkins-fans/cover.png
+0
-0
content/wechat/articles/2020/05/2020-05-16-a-thank-you-letter-for-jenkins-fans/error-message.png
...-16-a-thank-you-letter-for-jenkins-fans/error-message.png
+0
-0
未找到文件。
content/wechat/articles/2020/05/2020-05-16-a-thank-you-letter-for-jenkins-fans.md
0 → 100644
浏览文件 @
f8a7f97b
---
title
:
致广大Jenkins 中文社区关注者的感谢信
description
:
致广大Jenkins 中文社区关注者的感谢信
date
:
2020-05-16
author
:
zhouyou
poster
:
cover.png
---
![
cover
](
cover.png
)
故事要从 2020/5/12 社区公众号发布的文章
[
手把手教会你 Jenkins 备份与恢复
](
https://mp.weixin.qq.com/s?__biz=Mzg2MzAwNzU3Nw==&mid=2247484860&idx=1&sn=f3e385a9d6bdf9892d4a488d34e148da&chksm=ce7e638af909ea9c42cdaebb0df6a5eb396bf014bfa1b0e2fd840c27b56ab9a8f9184006c4c3&scene=21#wechat_redirect
)
说起。
## 1-先从故事本身说起
5月12日,公众号发布了一篇有关 Jenkins 备份与恢复的文章,其中分享了以下一段备份 Shell 脚本:
```
#!/bin/bash
# Jenkins Configuraitons Directory
cd
$JENKINS_HOME
# Add general configurations, job configurations, and user content
git add
--
*
.xml
jobs
/
*
/
*
.xml userContent/
*
ansible/
*
# only add user configurations if they exist
if
[
-d
users
]
;
then
user_configs
=
`
ls users
/
*
/config.xml
`
if
[
-n
"
$user_configs
"
]
;
then
git add
$user_configs
fi
fi
# mark as deleted anything that's been, well, deleted
to_remove
=
`
git status |
grep
"deleted"
|
awk
'{print $3}'
`
if
[
-n
"
$toremove
"
]
;
then
git
rm
--ignore-unmatch
$toremove
fi
git commit
-m
"Automated Jenkins commit"
git push
-q
-u
origin master
```
文章格式核对完成后,便在公众号上发布了。
## 2-火眼金睛出现了
5月13日,微信公众号有一昵称为"奋斗”的小伙伴给我们留言,指出了文中的一处错误:
![
error-message
](
error-message.png
)
我们仔细核对后,发现脚本确实存在错误,并立马修改为正确的版本,目前修改后的文章已发布。
对“奋斗”小伙伴的反馈再次表示感谢!
## 3-故事引发的几点感想
1.
由于我们在发布文章时检查不够细致导致发布文章有误,给各位带来的困惑,在此对各位社区关注者表示歉意。
2.
我们相信,还有很多小伙伴一直密切关注着 Jenkins 中文社区的发展及动态,欢迎每一位关注社区的人来监督并提出宝贵意见。
## 关于我们
我们是由Jenkins国内爱好者、贡献者自发组建的一个技术社区,致力于共同推广以及完善 CI/CD 技术的学习使用和落地。
我们尊重每一位技术人的梦想,真诚的欢迎每一位对Jenkins、CI/CD 或开源社区感兴趣的小伙伴加入我们,共同推广以及完善 CI/CD 技术的学习试用和落地。
\ No newline at end of file
content/wechat/articles/2020/05/2020-05-16-a-thank-you-letter-for-jenkins-fans/cover.png
0 → 100644
浏览文件 @
f8a7f97b
30.7 KB
content/wechat/articles/2020/05/2020-05-16-a-thank-you-letter-for-jenkins-fans/error-message.png
0 → 100644
浏览文件 @
f8a7f97b
28.9 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录