修复(08-08-production-deployment-execution): 持久化远端部署阶段日志
这个提交包含在:
@@ -746,6 +746,19 @@ if (deployExistingScriptContent.indexOf('ssh "$DEPLOY_REFRESH_SERVER" refresh')
|
||||
errors.push('deploy-existing.sh 必须在应用部署成功后刷新备份合同');
|
||||
}
|
||||
|
||||
for (const requiredFragment of [
|
||||
'DEPLOY_RUNTIME_LOG_REF="artifacts/deployment-runtime"',
|
||||
'install -d -m 0700 "$DEPLOY_RUNTIME_LOG_DIR"',
|
||||
'chmod 0600 "$log_file"',
|
||||
'run_logged_deploy_stage "build-init"',
|
||||
'run_logged_deploy_stage "run-init"',
|
||||
'run_logged_deploy_stage "build-switch-server"',
|
||||
]) {
|
||||
if (!deployScriptContent.includes(requiredFragment)) {
|
||||
errors.push(`deploy.sh 缺少远端阶段日志合同: ${requiredFragment}`);
|
||||
}
|
||||
}
|
||||
|
||||
for (const requiredFragment of [
|
||||
'validateProductionOrigin',
|
||||
'validateProductionDbName',
|
||||
|
||||
在新工单中引用
屏蔽一个用户