版本库附件打包下载从配置文件获取
This commit is contained in:
parent
1a1fde778f
commit
c9021eb70f
|
@ -360,7 +360,7 @@ update
|
||||||
# ip = RepositoriesHelper::REPO_IP_ADDRESS
|
# ip = RepositoriesHelper::REPO_IP_ADDRESS
|
||||||
gitlab_address = Redmine::Configuration['gitlab_address']
|
gitlab_address = Redmine::Configuration['gitlab_address']
|
||||||
# REDO:需优化,仅测试用
|
# REDO:需优化,仅测试用
|
||||||
@zip_path = gitlab_address.to_s + "/api/v3/projects/" + @project.gpid.to_s + "/repository/archive?&private_token=YTyCv4978MXmdL2B9C62"
|
@zip_path = Gitlab.endpoint.to_s + "/projects/" + @project.gpid.to_s + "/repository/archive?&private_token=" + Gitlab.private_token
|
||||||
if @repository.type.to_s == "Repository::Gitlab"
|
if @repository.type.to_s == "Repository::Gitlab"
|
||||||
@repos_url = gitlab_address.to_s+"/"+@project.owner.to_s+"/"+@repository.identifier+"."+"git"
|
@repos_url = gitlab_address.to_s+"/"+@project.owner.to_s+"/"+@repository.identifier+"."+"git"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue