* Fix exec gitlab job bug and adjust exec job function.

This commit is contained in:
Guan Xiying
2021-09-06 17:29:37 +08:00
parent ddfe2479ac
commit a5ceffb6cf
6 changed files with 30 additions and 10 deletions
+2 -1
View File
@@ -877,8 +877,9 @@ class gitlabModel extends model
*/
public function apiCreatePipeline($gitlabID, $projectID, $params)
{
if(!is_string($params)) $params = json_encode($params);
$url = sprintf($this->getApiRoot($gitlabID), "/projects/{$projectID}/pipeline");
return json_decode(commonModel::http($url, $reference, null, array("Content-Type: application/json")));
return json_decode(commonModel::http($url, $params, null, array("Content-Type: application/json")));
}
/**