* finish task #6922.

This commit is contained in:
wangyidong
2020-03-02 16:59:11 +08:00
parent 7c77155ced
commit 9d2d1a0b9d
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ CREATE TABLE IF NOT EXISTS `zt_compile` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
INSERT INTO `zt_cron` (`m`, `h`, `dom`, `mon`, `dow`, `command`, `remark`, `type`, `buildin`, `status`, `lastTime`) VALUES
('1', '1', '*', '*', '*', 'moduleName=ci&methodName=buildTodayJob', '创建周期性任务', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('1', '1', '*', '*', '*', 'moduleName=ci&methodName=initQueue', '创建周期性任务', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('*/5', '*', '*', '*', '*', 'moduleName=ci&methodName=checkBuildStatus', '同步Jenkins任务状态', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('*/5', '*', '*', '*', '*', 'moduleName=ci&methodName=exec', '执行Jenkins任务', 'zentao', 1, 'normal', '0000-00-00 00:00:00');
+1 -1
View File
@@ -1164,7 +1164,7 @@ INSERT INTO `zt_cron` (`m`, `h`, `dom`, `mon`, `dow`, `command`, `remark`, `type
('*/5', '*', '*', '*', '*', 'moduleName=webhook&methodName=asyncSend', '异步发送Webhook', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('*/5', '*', '*', '*', '*', 'moduleName=admin&methodName=deleteLog', '删除过期日志', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('1', '1', '*', '*', '*', 'moduleName=todo&methodName=createCycle', '生成周期性待办', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('1', '1', '*', '*', '*', 'moduleName=ci&methodName=buildTodayJob', '创建周期性任务', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('1', '1', '*', '*', '*', 'moduleName=ci&methodName=initQueue', '创建周期性任务', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('*/5', '*', '*', '*', '*', 'moduleName=ci&methodName=checkBuildStatus', '同步Jenkins任务状态', 'zentao', 1, 'normal', '0000-00-00 00:00:00'),
('*/5', '*', '*', '*', '*', 'moduleName=ci&methodName=exec', '执行Jenkins任务', 'zentao', 1, 'normal', '0000-00-00 00:00:00');
+2 -2
View File
@@ -23,12 +23,12 @@ class ci extends control
}
/**
* Build today job.
* Init compile queue.
*
* @access public
* @return void
*/
public function buildTodayJob()
public function initQueue()
{
$scheduleJobs = $this->loadModel('integration')->getListByTriggerType('schedule');
+1 -1
View File
@@ -165,7 +165,7 @@ $lang->install->cronList['moduleName=mail&methodName=asyncSend'] = 'Asynchr
$lang->install->cronList['moduleName=webhook&methodName=asyncSend'] = 'Asynchronize sending Webhook';
$lang->install->cronList['moduleName=admin&methodName=deleteLog'] = 'Delete overdue logs';
$lang->install->cronList['moduleName=todo&methodName=createCycle'] = 'Create recurring todos';
$lang->install->cronList['moduleName=ci&methodName=buildTodayJob'] = 'Create recurring jenkins';
$lang->install->cronList['moduleName=ci&methodName=initQueue'] = 'Create recurring jenkins';
$lang->install->cronList['moduleName=ci&methodName=checkBuildStatus'] = 'Synchronize Jenkins Status';
$lang->install->cronList['moduleName=ci&methodName=exec'] = 'Execute Jenkins';
+1 -1
View File
@@ -165,7 +165,7 @@ $lang->install->cronList['moduleName=mail&methodName=asyncSend'] = '异步
$lang->install->cronList['moduleName=webhook&methodName=asyncSend'] = '异步发送Webhook';
$lang->install->cronList['moduleName=admin&methodName=deleteLog'] = '删除过期日志';
$lang->install->cronList['moduleName=todo&methodName=createCycle'] = '生成周期性待办';
$lang->install->cronList['moduleName=ci&methodName=buildTodayJob'] = '创建周期性任务';
$lang->install->cronList['moduleName=ci&methodName=initQueue'] = '创建周期性任务';
$lang->install->cronList['moduleName=ci&methodName=checkBuildStatus'] = '同步Jenkins任务状态';
$lang->install->cronList['moduleName=ci&methodName=exec'] = '执行Jenkins任务';