Compare commits

1 Commits

Author SHA1 Message Date
739fc8ddb1 jenkins_shell.sh
添加jenkins 发布的shell

Signed-off-by: xieyinlu <xieyinlu@localhost.local>
2025-06-09 16:13:43 +08:00
2 changed files with 14 additions and 1 deletions

13
docs/jenkins_shell.sh Normal file
View File

@@ -0,0 +1,13 @@
# 先删除之前的容器和镜像文件
if [ "$(docker ps -a | grep xfg-dev-tech-app)" ]; then
docker stop xfg-dev-tech-app
docker rm xfg-dev-tech-app
fi
if [ "$(docker images -q xfg-dev-tech-app)" ]; then
docker rmi xfg-dev-tech-app
fi
# 重新生成
cd /var/jenkins_home/workspace/xfg-dev-tech-jenkins/xfg-dev-tech-app
docker build -t xiaofuge/xfg-dev-tech-app .
docker run -itd -p 8091:8091 --name xfg-dev-tech-app xiaofuge/xfg-dev-tech-app

View File

@@ -31,7 +31,7 @@ public class Application {
ResponseBodyEmitter emitter = new ResponseBodyEmitter();
String[] words = new String[]{"嗨,真不容易!\r\n", "恭喜💐 ", "你的", " Jenkins ", "", "", "", "", "", "", "了啦🌶!","\r\nBy 小傅哥 https://bugstack.cn"};
String[] words = new String[]{"嗨,臭宝\r\n", "恭喜💐 ", "你的", " Jenkins ", "", "", "", "", "", "", "了啦🌶!","\r\nBy 小傅哥 https://bugstack.cn"};
new Thread(() -> {
for (String word : words) {
try {