* Adjust nexus type for database.
This commit is contained in:
@@ -59,4 +59,4 @@ $config->instance->actions->view = array();
|
||||
$config->instance->actions->view['mainActions'] = array('visit', 'ajaxStart', 'ajaxStop', 'upgrade');
|
||||
$config->instance->actions->view['suffixActions'] = array('ajaxUninstall');
|
||||
|
||||
$config->instance->devopsApps = array('gitea', 'gitlab', 'jenkins', 'sonarqube', 'nexus3');
|
||||
$config->instance->devopsApps = array('gitea', 'gitlab', 'jenkins', 'sonarqube', 'nexus3', 'nexus');
|
||||
|
||||
@@ -594,6 +594,7 @@ class instance extends control
|
||||
$sharedDB = zget($pgList, $customData->dbService);
|
||||
}
|
||||
$instance = $this->instance->install($cloudApp, $sharedDB, $customData);
|
||||
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
|
||||
if(!$instance) return $this->send(array('result' => 'fail', 'message' => $this->lang->instance->notices['installFail']));
|
||||
|
||||
unset($_GET['onlybody']);
|
||||
|
||||
@@ -996,6 +996,7 @@ class InstanceModel extends model
|
||||
if($result->code != 200)
|
||||
{
|
||||
$this->dao->delete()->from(TABLE_INSTANCE)->where('id')->eq($instance->id)->exec();
|
||||
dao::$errors['server'][] = $result->message;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -2135,7 +2136,7 @@ class InstanceModel extends model
|
||||
|
||||
$pipeline = new stdclass();
|
||||
$instance->type = $instance->chart;
|
||||
$pipeline->type = $instance->type;
|
||||
$pipeline->type = $instance->type == 'nexus3' ? 'nexus' : $instance->type;
|
||||
$pipeline->private = md5(strval(rand(10,113450)));
|
||||
$pipeline->createdBy = 'system';
|
||||
$pipeline->createdDate = helper::now();
|
||||
|
||||
Reference in New Issue
Block a user