* Check job reference is set.

This commit is contained in:
Guan Xiying
2021-09-15 10:06:21 +08:00
parent 4eaf583ea8
commit 7e44cf65c0
+1
View File
@@ -24,6 +24,7 @@ class jobModel extends model
if(strtolower($job->engine) == 'gitlab')
{
$pipeline = json_decode($job->pipeline);
if(!isset($pipeline->reference)) return $job;
$job->project = $pipeline->project;
$job->reference = $pipeline->reference;
}