# Jenkins 必备插件清单（生产最小集，按现状 268 个插件裁剪治理的基线）
# 安装：docker compose exec jenkins jenkins-plugin-cli --plugin-file /var/jenkins_config/plugins.txt
#
# 说明：现状容器里 plugins 目录混有 .jpi 与 .bak 残留（268 条记录），
#       建议按此清单重建，避免僵尸插件带来的 CVE 面。

# --- 核心流水线 ---
workflow-aggregator          # Pipeline 全家桶
pipeline-stage-view
pipeline-utility-steps
git
git-client
scm-api

# --- Gitea 集成 ---
gitea                        # Gitea Server 插件（提供 Gitea Organization / webhook 端点）
generic-webhook-trigger      # Jenkinsfile 中 GenericTrigger 依赖，Gitea push 触发

# --- 凭据 ---
credentials
credentials-binding         # withCredentials / sshagent
plain-credentials
ssh-credentials

# --- 构建工具 ---
nodejs                       # Jenkinsfile 中 nodejs(nodeJSInstallationName:'18') 依赖
timestamper                  # options { timestamps() }
ansicolor                    # options { ansiColor('xterm') }
build-timeout

# --- 报告与产物 ---
htmlpublisher                # publishHTML：覆盖率 / E2E 报告
junit                        # 测试结果趋势
warnings-ng                  # ESLint / tsc 警告可视化

# --- 运维 ---
disk-usage                   # JENKINS_HOME 增长监控（本次磁盘 85% 事故的直接看板）
monitoring                   # 内置监控
mailer                       # post { failure { mail } }
configuration-as-code        # JCasC，本目录 casc.yaml 依赖
job-dsl                      # 作业声明化（可选，用于重建 novalon-website-ci-cd）
