Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
loit-build-common
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
loit-Infrastructure
loit-build-common
Commits
4dc258e7
提交
4dc258e7
authored
8月 26, 2021
作者:
chenshiying
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[新增] 添加skywalking 客户端定期日志删除
上级
032ad74d
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
209 行增加
和
9 行删除
+209
-9
CAREADEME.md
loit-build-component/loit-build-deploy-env/CAREADEME.md
+92
-0
config.xml
...bs/git/loit-git-branch-portal-web-module-build/config.xml
+4
-4
add_crontab_sky_agent_log.sh
...n/resources/bin/skyalkingLog/add_crontab_sky_agent_log.sh
+7
-0
handle_sky_agent_log.conf
...main/resources/bin/skyalkingLog/handle_sky_agent_log.conf
+1
-0
readme.md
...-deploy-env/src/main/resources/bin/skyalkingLog/readme.md
+97
-0
rm_sky_agent_log.sh
...v/src/main/resources/bin/skyalkingLog/rm_sky_agent_log.sh
+3
-0
deployInfo.xlsx
.../loit-build-deploy-env/src/main/resources/deployInfo.xlsx
+0
-0
jenkinsJobGitFront.ftl
...nv/src/main/resources/template/git/jenkinsJobGitFront.ftl
+4
-3
pom.xml
pom.xml
+1
-2
没有找到文件。
loit-build-component/loit-build-deploy-env/CAREADEME.md
0 → 100644
浏览文件 @
4dc258e7
# 初始化脚本步骤
服务器(10.0.120.26 192.169.201.14) /home/soft/deploy 文件夹
```shell
pscp -r -h /home/soft/deploy/server/host_ip_ca.txt /root/BJCAROOT /root
```
host_ip_ca.txt
```
10.0.120.162 root
10.0.120.7 root
10.0.120.83 root
10.0.120.186 root
10.0.120.231 root
10.0.120.146 root
10.0.120.214 root
10.0.120.198 root
10.0.120.189 root
10.0.120.218 root
10.0.120.193 root
10.0.120.221 root
10.0.120.103 root
10.0.120.61 root
10.0.120.55 root
10.0.120.161 root
10.0.120.39 root
10.0.120.158 root
10.0.120.210 root
10.0.120.84 root
10.0.120.124 root
10.0.120.151 root
10.0.120.248 root
10.0.120.237 root
10.0.120.154 root
10.0.120.89 root
10.0.120.122 root
10.0.120.147 root
10.0.120.250 root
10.0.120.18 root
10.0.120.199 root
10.0.120.192 root
10.0.120.245 root
10.0.120.58 root
10.0.120.187 root
10.0.120.36 root
10.0.120.92 root
10.0.120.130 root
10.0.120.21 root
10.0.120.127 root
10.0.120.53 root
10.0.120.242 root
10.0.120.68 root
10.0.120.225 root
10.0.120.69 root
10.0.120.116 root
10.0.120.94 root
10.0.120.212 root
10.0.120.143 root
10.0.120.44 root
10.0.120.134 root
10.0.120.184 root
10.0.120.195 root
10.0.120.16 root
10.0.120.132 root
10.0.120.35 root
10.0.120.238 root
10.0.120.104 root
10.0.120.3 root
10.0.120.247 root
10.0.120.153 root
10.0.120.152 root
10.0.120.37 root
10.0.120.128 root
10.0.120.135 root
10.0.120.190 root
10.0.120.241 root
10.0.120.88 root
10.0.120.41 root
10.0.120.121 root
10.0.120.211 root
10.0.120.172 root
10.0.120.217 root
10.0.120.51 root
10.0.120.13 root
10.0.120.198 root
10.0.120.118 root
10.0.120.189 root
```
loit-build-component/loit-build-deploy-env/src/main/resources/bin/jobs/git/loit-git-branch-portal-web-module-build/config.xml
浏览文件 @
4dc258e7
...
...
@@ -70,9 +70,10 @@
<concurrentBuild>
false
</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>
npm install node-sass -save --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ --unsafe-perm
<command>
npm install node-sass -save --sass_binary_site=http://39.100.254.140:12010/repository/node-sass/ --unsafe-perm
npm install --unsafe-perm
npm install --unsafe-perm
--registry=http://39.100.254.140:12010/repository/npm-all/
npm run build:prod
...
...
@@ -142,4 +143,4 @@ echo "##################pussing jar end#############"</command>
<cacheLocationStrategy
class=
"jenkins.plugins.nodejs.cache.DefaultCacheLocationLocator"
/>
</jenkins.plugins.nodejs.NodeJSBuildWrapper>
</buildWrappers>
</project>
\ No newline at end of file
</project>
loit-build-component/loit-build-deploy-env/src/main/resources/bin/skyalkingLog/add_crontab_sky_agent_log.sh
0 → 100644
浏览文件 @
4dc258e7
#!/bin/bash
#此脚本用于添加定时任务
\c
p
-rf
/home/soft/logs/handle_sky_agent_log.conf /home/soft/logs/handle_sky_agent_log_bak.conf
crontab
-l
>>
/home/soft/logs/handle_sky_agent_log_bak.conf
chattr
-ia
/var/spool/cron
crontab /home/soft/logs/handle_sky_agent_log_bak.conf
chattr +ia /var/spool/cron
loit-build-component/loit-build-deploy-env/src/main/resources/bin/skyalkingLog/handle_sky_agent_log.conf
0 → 100644
浏览文件 @
4dc258e7
0
1
* * * /
bin
/
bash
/
home
/
soft
/
logs
/
rm_sky_agent_log
.
sh
loit-build-component/loit-build-deploy-env/src/main/resources/bin/skyalkingLog/readme.md
0 → 100644
浏览文件 @
4dc258e7
```
shell
pscp
-r
-h
/home/soft/deploy/server/host_ip_ca.txt /home/soft/logs/add_crontab_sky_agent_log.sh /home/soft/logs
pscp
-r
-h
/home/soft/deploy/server/host_ip_ca.txt /home/soft/logs/handle_sky_agent_log.conf /home/soft/logs
pscp
-r
-h
/home/soft/deploy/server/host_ip_ca.txt /home/soft/logs/rm_sky_agent_log.sh /home/soft/logs
pssh
-h
/home/soft/deploy/server/host_ip_ca.txt
-i
bash /home/soft/logs/add_crontab_sky_agent_log.sh
```
host_ip_ca.txt
```
10.0.120.162 root
10.0.120.7 root
10.0.120.83 root
10.0.120.186 root
10.0.120.231 root
10.0.120.146 root
10.0.120.214 root
10.0.120.198 root
10.0.120.189 root
10.0.120.218 root
10.0.120.193 root
10.0.120.221 root
10.0.120.103 root
10.0.120.61 root
10.0.120.55 root
10.0.120.161 root
10.0.120.39 root
10.0.120.158 root
10.0.120.210 root
10.0.120.84 root
10.0.120.124 root
10.0.120.151 root
10.0.120.248 root
10.0.120.237 root
10.0.120.154 root
10.0.120.89 root
10.0.120.122 root
10.0.120.147 root
10.0.120.250 root
10.0.120.18 root
10.0.120.199 root
10.0.120.192 root
10.0.120.245 root
10.0.120.58 root
10.0.120.187 root
10.0.120.36 root
10.0.120.92 root
10.0.120.130 root
10.0.120.21 root
10.0.120.127 root
10.0.120.53 root
10.0.120.242 root
10.0.120.68 root
10.0.120.225 root
10.0.120.69 root
10.0.120.116 root
10.0.120.94 root
10.0.120.212 root
10.0.120.143 root
10.0.120.44 root
10.0.120.134 root
10.0.120.184 root
10.0.120.195 root
10.0.120.16 root
10.0.120.132 root
10.0.120.35 root
10.0.120.238 root
10.0.120.104 root
10.0.120.3 root
10.0.120.247 root
10.0.120.153 root
10.0.120.152 root
10.0.120.37 root
10.0.120.128 root
10.0.120.135 root
10.0.120.190 root
10.0.120.241 root
10.0.120.88 root
10.0.120.41 root
10.0.120.121 root
10.0.120.211 root
10.0.120.172 root
10.0.120.217 root
10.0.120.51 root
10.0.120.13 root
10.0.120.198 root
10.0.120.118 root
10.0.120.189 root
```
loit-build-component/loit-build-deploy-env/src/main/resources/bin/skyalkingLog/rm_sky_agent_log.sh
0 → 100644
浏览文件 @
4dc258e7
#!/bin/bash
rm
-rf
/usr/local/skywalking/agent/logs/skywalking-api.log.2
*
loit-build-component/loit-build-deploy-env/src/main/resources/deployInfo.xlsx
浏览文件 @
4dc258e7
No preview for this file type
loit-build-component/loit-build-deploy-env/src/main/resources/template/git/jenkinsJobGitFront.ftl
浏览文件 @
4dc258e7
...
...
@@ -78,11 +78,12 @@
<concurrentBuild>
false
</concurrentBuild>
<builders>
<hudson.tasks.Shell>
<command>
npm install node-sass -save --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ --unsafe-perm
<command>
npm install node-sass -save --sass_binary_site=http://39.100.254.140:12010/repository/node-sass/ --unsafe-perm
npm install --unsafe-perm
npm install --unsafe-perm
--registry=http://39.100.254.140:12010/repository/npm-all/
npm install cross-env --unsafe-perm
npm install cross-env --unsafe-perm
--registry=http://39.100.254.140:12010/repository/npm-all/
npm run build:prod
zip -r dist.zip dist
...
...
pom.xml
浏览文件 @
4dc258e7
...
...
@@ -88,4 +88,4 @@
</pluginRepository>
</pluginRepositories>
</project>
\ No newline at end of file
</project>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论