feat(响应枚举): 添加参数错误枚举值
All checks were successful
test/timeline-server/pipeline/head This commit looks good

chore(Jenkinsfile): 清理构建后的Docker镜像
This commit is contained in:
2026-02-25 17:30:53 +08:00
parent dcbfb1bb88
commit e4a4c227b5
2 changed files with 17 additions and 2 deletions

14
Jenkinsfile vendored
View File

@@ -165,6 +165,20 @@ pipeline {
}
always {
cleanWs()
}
cleanup {
// 清理 Docker 镜像
script {
def services = ['gateway', 'user', 'story', 'file']
for (service in services) {
def serviceDir = "timeline-${service}-service"
def imageName = "${REGISTRY}/timeline-${service}-service:${BUILD_NUMBER}"
sh "docker rmi -f ${imageName}"
}
}
}
}
}

View File

@@ -29,8 +29,9 @@ public enum ResponseEnum {
// 操作错误
SEARCH_ERROR(4001, "查询数据库错误"),
NOT_FOUND_ERROR(4002, "未找到该资源");
NOT_FOUND_ERROR(4002, "未找到该资源"),
PARAM_ERROR(4003, "参数错误");
private final int code;
private final String message;
}