先澄清概念与总体思路

通用添加插件思路
在 Ubuntu 上实现触发器的常见做法
crontab -e,添加如 0 2 * * * /usr/bin/systemctl start my_custom.service 来在每天 02:00 触发服务;或用 @daily /path/to/script.sh 执行脚本。/etc/systemd/system/my_custom.service,在 [Unit] 用 After= 指定依赖,在 [Service] 用 ExecStart= 执行脚本,然后 sudo systemctl enable --now my_custom.service 启用并立即启动。inotify-tools,编写脚本监听文件修改事件并调用你的处理程序,例如 inotifywait -m -e modify "/path/to/file" | while read ...; do /path/to/handler.sh; done。如果你指的是 Jenkins 的触发器插件
http://jenkins_ip:port/generic-webhook-trigger/invoke?token=xxx),事件选择 push,内容类型选 application/json。请确认你的具体场景