* Finish jenkins test.
This commit is contained in:
@@ -18,9 +18,6 @@ pid=1
|
||||
|
||||
$git = new gitTest();
|
||||
|
||||
/* Fix error Gitlab url. */
|
||||
$tester->dao->update(TABLE_PIPELINE)->set('url')->eq('http://10.0.1.161:51080')->where('id')->eq(1)->exec();
|
||||
|
||||
$repo = $tester->dao->select('*')->from(TABLE_REPO)->limit(1)->fetch();
|
||||
if(strtolower($repo->SCM) == 'gitlab') $repo = $tester->loadModel('repo')->processGitlab($repo);
|
||||
r($git->getRepoLogs($repo)) && p() && e(1); // 获取版本库的tags
|
||||
|
||||
@@ -16,10 +16,7 @@ pid=1
|
||||
|
||||
$git = new gitTest();
|
||||
|
||||
/* Fix error Gitlab url. */
|
||||
$tester->dao->update(TABLE_PIPELINE)->set('url')->eq('http://10.0.1.161:51080')->where('id')->eq(1)->exec();
|
||||
|
||||
$tester->dao->update(TABLE_REPO)->set('synced')->eq(1)->where('id')->eq(1)->exec();
|
||||
r($git->getRepos()) && p() && e('http://192.168.1.161:51080/api/v4/projects/42/repository/'); // 获取版本库
|
||||
r($git->getRepos()) && p() && e('http://10.0.1.161:51080/api/v4/projects/42/repository/'); // 获取版本库
|
||||
|
||||
system("./ztest init");
|
||||
|
||||
@@ -17,9 +17,6 @@ pid=1
|
||||
|
||||
$git = new gitTest();
|
||||
|
||||
/* Fix error Gitlab url. */
|
||||
$tester->dao->update(TABLE_PIPELINE)->set('url')->eq('http://10.0.1.161:51080')->where('id')->eq(1)->exec();
|
||||
|
||||
$repo = $tester->dao->select('*')->from(TABLE_REPO)->limit(1)->fetch();
|
||||
if(strtolower($repo->SCM) == 'gitlab') $repo = $tester->loadModel('repo')->processGitlab($repo);
|
||||
r($git->updateCommit($repo)) && p() && e(1); // 测试正常的版本库
|
||||
|
||||
Reference in New Issue
Block a user