增加系统版本通知功能

This commit is contained in:
dengqichen 2025-12-09 15:16:24 +08:00
parent 59e114fd6b
commit 051a3c827c
7 changed files with 21 additions and 78 deletions

View File

@ -239,7 +239,7 @@ public class JenkinsBuildServiceImpl extends BaseServiceImpl<JenkinsBuild, Jenki
protected Integer syncJob(ExternalSystem externalSystem, JenkinsJob job, JenkinsJobResponse jobResponse, JenkinsBuild latestBuild) {
try {
if (jobResponse == null || jobResponse.getLastBuild() == null) {
log.info("No build information available for job: {}", job.getJobName());
log.debug("No build information available for job: {}", job.getJobName());
return 0;
}

View File

@ -187,6 +187,7 @@ public class ServerServiceImpl
* @return 连接状态信息只包含连通性错误信息响应时间
*/
@Override
@Transactional
public ServerInfoDTO testConnection(Long serverId) {
long startTime = System.currentTimeMillis();
ServerInfoDTO info = new ServerInfoDTO();

View File

@ -95,17 +95,20 @@ flowable:
# dead-letter-timeout: 1000
logging:
level:
springframework: DEBUG
org.springframework.web: DEBUG
org.springframework.web.client.RestTemplate: WARN # 关闭RestTemplate的DEBUG日志减少HTTP请求详细日志
org.springframework.context.i18n: DEBUG
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping: TRACE
org.hibernate.SQL: INFO
org.hibernate.type.descriptor.sql: TRACE
org.hibernate.type.descriptor.sql.BasicBinder: TRACE
org.hibernate.orm.jdbc.bind: INFO
com.qqchen.deploy.backend.framework.utils.EntityPathResolver: DEBUG
com.qqchen.deploy.backend: DEBUG
# Spring框架日志生产环境只保留WARN及以上
springframework: WARN
org.springframework.web: WARN
org.springframework.web.client.RestTemplate: WARN
org.springframework.web.HttpLogging: WARN
org.springframework.context.i18n: WARN
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping: WARN
# Hibernate日志生产环境关闭SQL日志
org.hibernate.SQL: WARN
org.hibernate.type.descriptor.sql: WARN
org.hibernate.type.descriptor.sql.BasicBinder: WARN
org.hibernate.orm.jdbc.bind: WARN
# 业务日志保留INFO级别记录关键业务操作
com.qqchen.deploy.backend: INFO
# 日志文件配置
file:
name: logs/deploy-ease.log # 日志文件路径

View File

@ -1,44 +0,0 @@
-- --------------------------------------------------------------------------------------
-- 系统版本发布记录 - 初始数据
-- 功能:插入当前版本的发布记录
-- 作者qqchen
-- 日期2025-12-09
-- --------------------------------------------------------------------------------------
-- 插入 1.50 前后端统一发布记录
INSERT INTO system_release (
create_by, create_time, update_by, update_time, version, deleted,
release_version, module, release_date, changes, notified, delay_minutes, estimated_duration, enable_auto_shutdown
)
VALUES (
'system', NOW(), 'system', NOW(), 1, 0,
1.0, 'ALL', NOW(),
'【后端】
ConcurrentHashMap管理
+
/
MySQL连接池配置不足问题200/80
enableAutoShutdown
DTO字段设计
Git分支同步日志
ID配置外部化application.yml/application-prod.yml
"v1.50""版本号1.50"
CRUD
//
',
0, NULL, NULL, 0
);

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">
<!-- 插入新数据 -->
<changeSet id="20251209112700" author="qqchen">
<sqlFile path="20251209112700-01.sql" relativeToChangelogFile="true"/>
</changeSet>
</databaseChangeLog>

View File

@ -14,11 +14,10 @@ VALUES (
'system', NOW(), 'system', NOW(), 1, 0,
1.1, 'BACKEND', NOW(),
'【后端】
Jenkins构建同步日志输出90%
Git项目同步日志输出DEBUG日志
RestTemplate HTTP请求日志DEBUG日志
100MB3010GB
',
-
- 线@Transactional事务注解
- / list/page
- ',
0, NULL, NULL, 0
);

View File

@ -6,11 +6,6 @@
<!-- Jenkins构建同步日志优化 - 无数据库变更 -->
<changeSet id="20251209141300" author="qqchen">
<comment>
优化Jenkins构建同步日志输出减少冗余日志
- 移除无新构建时的INFO日志
- 只在有构建更新时才记录日志
</comment>
<sqlFile path="20251209141300-01.sql" relativeToChangelogFile="true"/>
</changeSet>
</databaseChangeLog>