* Add code for gitlab.

This commit is contained in:
lichengjun
2021-06-23 13:44:01 +08:00
parent d02701de5a
commit 8defd7528f
6 changed files with 32 additions and 15 deletions
+19
View File
@@ -248,6 +248,25 @@ class gitlabModel extends model
return $gitlab_url;
}
/**
* Bind gitlab project.
*
* @param int $gitlabID
* @param int $projectID
* @access public
* @return void
*/
public function bindGitlabProject($executionID)
{
$products = $this->loadModel('execution')->getProducts($executionID, false, 'gitlab');
$bindGitlabAIDS = $this->dao->select('AID')->from(TABLE_RELATION)->where('product')->in($products)->fetchPairs();
$nameList = $this->dao->select('id,name')->from(TABLE_PIPELINE)->where('id')->in(implode(',' ,$bindGitlabAIDS))->fetchPairs();
return $nameList;
}
/**
* Create relationship between zentao product and gitlab project.
*