From ba71a098876a5a394ca3ea4a5a164306ef374bde Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Sat, 29 Jun 2024 03:44:31 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0CI=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4=E4=B8=BA=E6=AF=8F=E5=91=A8?= =?UTF-8?q?=E4=BA=94=E6=97=A9=E4=B8=8A10=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 2 +- bun.lockb | Bin 6436 -> 6801 bytes bunfig.toml | 2 ++ schedule/index.ts | 4 ++-- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 bunfig.toml diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 505188d..eb8816e 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,6 +1,6 @@ { "name": "ci_monitor", - "image": "micr.cloud.mioffice.cn/zhaoyingbo/dev:bun", + "image": "git.yingbo.im:333/zhaoyingbo/dev:bun", "remoteUser": "bun", "containerUser": "bun", "customizations": { diff --git a/bun.lockb b/bun.lockb index 0746628b4bdd8fcc3e8811ebefd8a32c959afbf0..db55d51e8324fb4dea42c8807ef0240296b54ab7 100755 GIT binary patch literal 6801 zcmeHLc~}$I7N0=yDJm4iT76n^Lm!fXgs^Xdt++f?6tId#V-i9zB$ydCal!S&1)*9k z;sS!GbuEgxw~7i61<{Jtx`1dE+-oatRp>cMu8!{^=C$vSe(&?}UC!LO_xC&Jp1JqT zg*Oa3?DJB75#K)rjv(9$zkE3&j#4H^LCoeyVoz@x9jw;Z~RlV zFn9N@TFrX*@G}!yAL{(Cr+Y_8R+a6of4VVxWA>24*W!KFcnq(yZ!BrbrMu*Q;W#eM zZnuv|8;y6#?cl5feMXkn+a362dh%UGMXL3ko@6}lWM)!!^!Li_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j)dea0Apg45ks;hBx?aJ z$t;YBqDX#(Nx3UbKK1g8V9 zf;TY!-8-P+YX<{%v{jg0b?_mNM>A_cuBkB=)(X*QAPeU|vgk4i z3_QTnV{94_W#EALrxlZ~Flc`u91v%);|3P~y=_y`jHY+Ui>Tosh62&d?4NM2;Nb0i zAVP#}LrVfiv{l9*R8#K9qy@uycW-zEzk8qIWEye*^esVY=utskfKnMOl*&xt N!a(Z4J@o(k{}1Dg@-hGb diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 0000000..76ef786 --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://registry.npmjs.org" \ No newline at end of file diff --git a/schedule/index.ts b/schedule/index.ts index 442646b..79bb937 100644 --- a/schedule/index.ts +++ b/schedule/index.ts @@ -3,8 +3,8 @@ import manageRobot from "../controllers/manageRobot"; import syncPipLine from "./syncPipLine"; const initSchedule = async () => { - // 每天十点钟发送CI报告 - scheduleJob("0 10 * * *", manageRobot.sendCIReportByCron); + // 每周五早上10点发送CI报告 + scheduleJob("0 10 * * 5", manageRobot.sendCIReportByCron); // 每15分钟同步一次CI数据 scheduleJob("*/15 * * * *", syncPipLine); // 立即同步一次