diff --git a/db/update15.2.sql b/db/update15.2.sql new file mode 100644 index 0000000000..59b2d09522 --- /dev/null +++ b/db/update15.2.sql @@ -0,0 +1,5 @@ +ALTER TABLE `zt_job` +ADD `engine` varchar(20) NOT NULL AFTER `frame`, +CHANGE `jkHost` `server` mediumint(0) UNSIGNED NOT NULL AFTER `frame`, +CHANGE `jkJob` `pipeline` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL AFTER `server`; + diff --git a/module/compile/lang/zh-cn.php b/module/compile/lang/zh-cn.php index 4814769834..7f9395de3c 100644 --- a/module/compile/lang/zh-cn.php +++ b/module/compile/lang/zh-cn.php @@ -3,11 +3,12 @@ $lang->compile->common = '构建'; $lang->compile->browse = '构建历史'; $lang->compile->logs = '构建日志'; -$lang->compile->id = 'ID'; -$lang->compile->name = '构建名称'; -$lang->compile->status = '构建状态'; -$lang->compile->time = '构建时间'; -$lang->compile->result = '构建结果'; +$lang->compile->id = 'ID'; +$lang->compile->name = '构建名称'; +$lang->compile->buildType = '构建引擎'; +$lang->compile->status = '构建状态'; +$lang->compile->time = '构建时间'; +$lang->compile->result = '构建结果'; $lang->compile->statusList['success'] = '成功'; $lang->compile->statusList['failure'] = '失败'; diff --git a/module/compile/model.php b/module/compile/model.php index b03b2b7036..d18c4a10a7 100644 --- a/module/compile/model.php +++ b/module/compile/model.php @@ -34,7 +34,7 @@ class compileModel extends model */ public function getList($jobID, $orderBy = 'id_desc', $pager = null) { - return $this->dao->select('t1.id, t1.name, t1.job, t1.status, t1.createdDate,t1.testtask, t2.pipeline,t2.triggerType,t2.comment,t2.atDay,t2.atTime, t3.name as repoName, t4.name as jenkinsName')->from(TABLE_COMPILE)->alias('t1') + return $this->dao->select('t1.id, t1.name, t1.job, t1.status, t1.createdDate, t1.testtask, t2.pipeline, t2.triggerType, t2.comment, t2.atDay, t2.atTime, t2.engine, t3.name as repoName, t4.name as jenkinsName')->from(TABLE_COMPILE)->alias('t1') ->leftJoin(TABLE_JOB)->alias('t2')->on('t1.job=t2.id') ->leftJoin(TABLE_REPO)->alias('t3')->on('t2.repo=t3.id') ->leftJoin(TABLE_PIPELINE)->alias('t4')->on('t2.server=t4.id') diff --git a/module/compile/view/browse.html.php b/module/compile/view/browse.html.php index 0f8820e775..3407431d45 100644 --- a/module/compile/view/browse.html.php +++ b/module/compile/view/browse.html.php @@ -28,8 +28,8 @@ recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}";?>