From 2dd98bc20ffc48a7e90eaf0bd07a9dbe66706b1f Mon Sep 17 00:00:00 2001 From: lxsang Date: Fri, 26 Jun 2020 01:14:29 +0200 Subject: [PATCH] respond before --- ci/router.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ci/router.lua b/ci/router.lua index d8bd5eb..9d7625f 100644 --- a/ci/router.lua +++ b/ci/router.lua @@ -47,8 +47,8 @@ function NotfoundController:index(...) local path = WWW_ROOT..DIR_SEP.."scripts"..DIR_SEP..repository..".sh" if ulib.exists(path) then + result("Build done, log file: https://ci.iohub.dev/log/"..repository.."_"..branch..".txt") local cmd = "/bin/bash "..path.." "..branch - print(cmd) local handle = io.popen(cmd) local f = io.open(WWW_ROOT..DIR_SEP.."log"..DIR_SEP..repository.."_"..branch..".txt", "w") for line in handle:lines() do @@ -57,8 +57,6 @@ function NotfoundController:index(...) end handle:close() f:close() - result("Build done, log file: https://ci.iohub.dev/log/"..repository.."_"..branch..".txt") - else fail("No build script found") end