* Adjust trigger pipeline scheduled tasks.
This commit is contained in:
@@ -55,7 +55,7 @@ class ci extends control
|
||||
$compiles = $this->loadModel('compile')->getUnexecutedList();
|
||||
foreach($compiles as $compile)
|
||||
{
|
||||
if(!$compile->atTime || date('H:i') < $compile->atTime) continue;
|
||||
if($compile->atTime && date('H:i') < $compile->atTime) continue;
|
||||
$this->compile->exec($compile);
|
||||
}
|
||||
|
||||
|
||||
@@ -413,9 +413,9 @@ class compileModel extends model
|
||||
|
||||
$this->loadModel('job');
|
||||
$result = new stdclass();
|
||||
if($job->engine == 'gitlab') $result = $this->job->execGitlabPipeline($job, $compileID);
|
||||
if($job->engine == 'gitlab') $result = $this->job->execGitlabPipeline($job);
|
||||
if($job->engine == 'jenkins') $result = $this->job->execJenkinsPipeline($job, $repo, $compileID);
|
||||
if($job->engine == 'gitfox') $result = $this->job->execGitfoxPipeline($job, $compileID);
|
||||
if($job->engine == 'gitfox') $result = $this->job->execGitfoxPipeline($job);
|
||||
|
||||
$this->dao->update(TABLE_COMPILE)->data($result)->where('id')->eq($compileID)->exec();
|
||||
$this->dao->update(TABLE_JOB)
|
||||
|
||||
Reference in New Issue
Block a user