Skip to content

Commit

Permalink
feat: 创建仓库时自动生成SVN PROXY地址 TencentBlueKing#1258
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlkl committed Oct 12, 2023
1 parent 0df933a commit b3afb67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ data class RepositoryProperties(
var repoStorageMapping: RepoStorageMapping = RepoStorageMapping(),
var allowUserAddSystemMetadata: List<String> = emptyList(),
var gitUrl: String = "",
var svnUrl: String = "",
)
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,11 @@ class RepositoryServiceImpl(
type == RepositoryType.GIT
) {
config.url = "${repositoryProperties.gitUrl}/$projectId/$name.git"
} else if (config is com.tencent.bkrepo.common.artifact.pojo.configuration.proxy.ProxyConfiguration &&
type == RepositoryType.SVN &&
repositoryProperties.svnUrl.isNotEmpty()
) {
config.url = "${repositoryProperties.svnUrl}/$projectId/$name"
}
configuration = config.toJsonString()
}
Expand Down

0 comments on commit b3afb67

Please sign in to comment.