feat(响应枚举): 添加参数错误枚举值
All checks were successful
test/timeline-server/pipeline/head This commit looks good
All checks were successful
test/timeline-server/pipeline/head This commit looks good
chore(Jenkinsfile): 清理构建后的Docker镜像
This commit is contained in:
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@@ -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}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user