test(hooks): finalize mutation test improvements and release acceptance
- Raise use-swipe-gesture mutation score to 66.13% (target 65%+) - Maintain use-reduced-motion mutation score at 76.32% (target 50%+) - Fix use-reduced-motion.ts ESLint set-state-in-effect warning - Add UJ-10 deep searcher journey (category browse → article read → content discovery) - Add 40 new test files (analytics, detail, sections, ui, lib components) - Update test-strategy-plan.md to v2.0 (sync test count to 1591) - Sync README.md with final release metrics Quality gates: TS 0 errors, ESLint 0 errors, 121 suites / 1591 tests passed
This commit is contained in:
Vendored
+43
@@ -472,6 +472,49 @@ pipeline {
|
||||
|
||||
failure {
|
||||
echo "❌ Pipeline 执行失败!请查看日志。"
|
||||
|
||||
script {
|
||||
// 邮件通知(使用 Jenkins 内置 mail step,无需额外插件)
|
||||
try {
|
||||
mail(
|
||||
to: 'team@novalon.cn',
|
||||
subject: "[FAILED] ${env.JOB_NAME} - #${env.BUILD_NUMBER}",
|
||||
body: """
|
||||
Pipeline 执行失败!
|
||||
项目: ${env.JOB_NAME}
|
||||
构建号: #${env.BUILD_NUMBER}
|
||||
分支: ${env.BRANCH_NAME}
|
||||
提交: ${env.GIT_COMMIT}
|
||||
详情: ${env.BUILD_URL}console
|
||||
日志: ${env.BUILD_URL}
|
||||
"""
|
||||
)
|
||||
echo "📧 邮件通知已发送至 team@novalon.cn"
|
||||
} catch (Exception e) {
|
||||
echo "⚠️ 邮件通知发送失败(mail plugin 可能未配置): ${e.getMessage()}"
|
||||
}
|
||||
|
||||
// Webhook 通知(预留,可接入钉钉/企业微信/Gitee Webhook)
|
||||
try {
|
||||
def webhookUrl = env.WEBHOOK_NOTIFICATION_URL ?: ''
|
||||
if (webhookUrl) {
|
||||
sh """
|
||||
curl -s -X POST '${webhookUrl}' \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{
|
||||
"msgtype": "markdown",
|
||||
"markdown": {
|
||||
"title": "❌ Pipeline 失败: ${env.JOB_NAME}",
|
||||
"text": "### ❌ Pipeline 执行失败\\n\\n**项目**: ${env.JOB_NAME}\\n**构建号**: #${env.BUILD_NUMBER}\\n**分支**: ${env.BRANCH_NAME}\\n**详情**: [查看日志](${env.BUILD_URL}console)"
|
||||
}
|
||||
}' || true
|
||||
"""
|
||||
echo "🔔 Webhook 通知已发送"
|
||||
}
|
||||
} catch (Exception e) {
|
||||
echo "⚠️ Webhook 通知发送失败: ${e.getMessage()}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user