* [feedback#7498] adjust job status sync logic.

This commit is contained in:
caoyanyi
2024-10-30 13:09:36 +08:00
committed by 李阳
parent fbdf66f1c9
commit 241ef59fbb
2 changed files with 24 additions and 4 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ class compile extends control
$build = $this->compile->getByID($buildID);
$job = $this->loadModel('job')->getByID($build->job);
if(empty($build->logs) and !in_array($build->status, array('created', 'pending'))) $build->logs = $this->compile->getLogs($job, $build);
if(!in_array($build->status, array('created', 'pending'))) $build->logs = $this->compile->getLogs($job, $build);
$logs = $build->logs ? str_replace(array("\r\n", "\n"), "<br />", $build->logs) : '';
$this->view->logs = $logs;