* Add code for gitlab.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user