Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Bk Ci
Commits
7ec44d09
Unverified
Commit
7ec44d09
authored
3 years ago
by
irwinsun
Committed by
GitHub
3 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #4771 from ddlin0719/issue_4572
CodeCC For 1.5 #4572
parents
d0449072
bac9a096
master
issue_6461_atom_platform_error
issue_6563_template_show_time
release-1.5
release-1.7
release-1.8
v1.9.7-RC.7
v1.9.7-RC.6
v1.9.7-RC.5
v1.9.7-RC.4
v1.9.7-RC.3
v1.9.7-RC.2
v1.9.7-RC.1
v1.9.6
v1.9.5
v1.9.4
v1.9.3
v1.9.2
v1.9.1
v1.9.0
v1.8.3
v1.8.2
v1.8.1
v1.8.1-RC.10
v1.8.0
v1.8.0-alpha.51
v1.8.0-alpha.47
v1.8.0-alpha.46
v1.8.0-alpha.38
v1.8.0-alpha.26
v1.8.0-alpha.24
v1.8.0-alpha.19
v1.8.0-alpha.1
v1.8.0-RC.3
v1.8.0-RC.2
v1.7.44
v1.7.43
v1.7.42
v1.7.41
v1.7.40
v1.7.39
v1.7.38
v1.7.37
v1.7.36
v1.7.35
v1.7.34
v1.7.33
v1.7.32
v1.7.31
v1.7.30
v1.7.29
v1.7.28
v1.7.27
v1.7.26
v1.7.25
v1.7.24
v1.7.23
v1.7.22-RC.2
v1.7.22-RC.1
v1.7.21-RC.3
v1.7.21-RC.2
v1.7.21-RC.1
v1.7.16-RC.1
v1.7.15-alpha.1
v1.7.13-alpha.1
v1.7.10-RC.6
v1.7.10-RC.5
v1.7.10-RC.4
v1.7.10-RC.3
v1.7.10-RC.2
v1.7.10-RC.1
v1.7.7-RC.1
v1.5.38
v1.5.37
v1.5.36
v1.5.35
v1.5.34
v1.5.33
v1.5.32
v1.5.31
v1.5.31-RC.3
v1.5.31-RC.2
v1.5.31-RC.1
v1.5.30
v1.5.29
v1.5.28
v1.5.27
v1.5.26
v1.5.25
v1.5.25-rc.1
v1.5.23
v1.5.22
v1.5.21
v1.5.20
v1.5.20-rc.2
v1.5.20-rc.1
v1.5.19
v1.5.18
v1.5.17
v1.5.16
v1.5.15
v1.5.14
No related merge requests found
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
src/backend/codecc/build.gradle
+0
-1
src/backend/codecc/build.gradle
src/backend/codecc/core/common/common-web/build.gradle
+0
-1
src/backend/codecc/core/common/common-web/build.gradle
src/backend/codecc/core/common/common-web/src/main/kotlin/com/tencent/devops/common/web/jasypt/DefaultEncryptor.kt
+0
-41
.../com/tencent/devops/common/web/jasypt/DefaultEncryptor.kt
support-files/codecc/templates/gateway#core#vhosts#codecc.frontend.conf
+0
-0
...codecc/templates/gateway#core#vhosts#codecc.frontend.conf
support-files/templates/#etc#codecc#application-defect.yml
+0
-13
support-files/templates/#etc#codecc#application-defect.yml
support-files/templates/#etc#codecc#application-job.yml
+0
-11
support-files/templates/#etc#codecc#application-job.yml
support-files/templates/#etc#codecc#application-quartz.yml
+0
-29
support-files/templates/#etc#codecc#application-quartz.yml
support-files/templates/#etc#codecc#application-task.yml
+0
-23
support-files/templates/#etc#codecc#application-task.yml
support-files/templates/#etc#codecc#common.yml
+0
-67
support-files/templates/#etc#codecc#common.yml
with
0 additions
and
186 deletions
+0
-186
src/backend/codecc/build.gradle
+
0
-
1
View file @
7ec44d09
...
...
@@ -223,7 +223,6 @@ subprojects {
dependency
"commons-io:commons-io:$commonsIOVersion"
dependency
"org.apache.xmlrpc:xmlrpc-client:$xmlrpcVersion"
dependency
"commons-httpclient:commons-httpclient:$commonsHttpclientVersion"
dependency
"com.github.ulisesbocchio:jasypt-spring-boot-starter:$jasyptVersion"
dependencySet
(
group:
"org.springframework.cloud"
,
version:
"$springConsulVersion"
)
{
entry
"spring-cloud-starter-consul-discovery"
entry
"spring-cloud-starter-consul-core"
...
...
This diff is collapsed.
Click to expand it.
src/backend/codecc/core/common/common-web/build.gradle
+
0
-
1
View file @
7ec44d09
...
...
@@ -4,7 +4,6 @@ dependencies {
compile
project
(
":core:common:common-auth-api"
)
compile
"org.springframework.boot:spring-boot-starter-amqp"
compile
"org.springframework.boot:spring-boot-starter-aop"
compile
"com.github.ulisesbocchio:jasypt-spring-boot-starter"
compile
group:
'net.sf.json-lib'
,
name:
'json-lib'
,
classifier:
"jdk15"
compile
"org.apache.xmlrpc:xmlrpc-client"
}
This diff is collapsed.
Click to expand it.
src/backend/codecc/core/common/common-web/src/main/kotlin/com/tencent/devops/common/web/jasypt/DefaultEncryptor.kt
deleted
100644 → 0
+
0
-
41
View file @
d0449072
/*
* Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available.
*
* Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
*
* BK-CI 蓝鲸持续集成平台 is licensed under the MIT license.
*
* A copy of the MIT License is included in this file.
*
*
* Terms of the MIT License:
* ---------------------------------------------------
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package
com.tencent.devops.common.web.jasypt
import
com.tencent.devops.common.util.AESUtil
import
org.jasypt.encryption.StringEncryptor
class
DefaultEncryptor
(
private
val
key
:
String
)
:
StringEncryptor
{
override
fun
decrypt
(
message
:
String
):
String
{
return
AESUtil
.
decrypt
(
key
,
message
)
}
override
fun
encrypt
(
message
:
String
):
String
{
return
AESUtil
.
encrypt
(
key
,
message
)
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
support-files/codecc/templates/codecc.frontend.conf
→
support-files/codecc/templates/
gateway#core#vhosts#
codecc.frontend.conf
+
0
-
0
View file @
7ec44d09
File moved
This diff is collapsed.
Click to expand it.
support-files/templates/#etc#codecc#application-defect.yml
deleted
100644 → 0
+
0
-
13
View file @
d0449072
# 服务配置文件模板
spring
:
application
:
name
:
defect${service-suffix}
desc
:
Defect Service
data
:
mongodb
:
uri
:
mongodb://__MONGODB_USER__:__MONGODB_PASS__@__MONGODB_IP__:__MONGODB_PORT__/db_defect?replicaSet=rs0&slaveOk=true
# 服务器端口配置,在同一台机器上部署多个微服务,端口号要不同 23910
server
:
port
:
__CODECC_DEFECT_PORT__
# 服务端口
This diff is collapsed.
Click to expand it.
support-files/templates/#etc#codecc#application-job.yml
deleted
100644 → 0
+
0
-
11
View file @
d0449072
# 服务配置文件模板
spring
:
application
:
name
:
job${service-suffix}
desc
:
Job Service
data
:
mongodb
:
uri
:
mongodb://__MONGODB_USER__:__MONGODB_PASS__@__MONGODB_IP__:__MONGODB_PORT__/db_defect?replicaSet=rs0&slaveOk=true
server
:
port
:
__CODECC_CODECCJOB_PORT__
\ No newline at end of file
This diff is collapsed.
Click to expand it.
support-files/templates/#etc#codecc#application-quartz.yml
deleted
100644 → 0
+
0
-
29
View file @
d0449072
# 服务配置文件模板
spring
:
application
:
name
:
quartz{service-suffix}
desc
:
Quartz Service
data
:
mongodb
:
uri
:
mongodb://__MONGODB_USER__:__MONGODB_PASS__@__MONGODB_IP__:__MONGODB_PORT__/db_task?replicaSet=rs0&slaveOk=true
# 服务器端口配置,在同一台机器上部署多个微服务,端口号要不同 23910
server
:
port
:
__CODECC_TASK_PORT__
# 服务端口
time
:
analysis
:
maxhour
:
__CODECC_ANALYSIS_MAXHOUR__
devops
:
imageName
:
__DEVOPS_DISPATCH_DOCER_DEFAULT_IMAGE_NAME__
retry
:
attempt
:
__CODECC_RETRY_ATTEMPT__
interval
:
__CODECC_RETRY_INTERVAL__
codecc
:
encryptor
:
password
:
__CODECC_ENC_PWD__
quartz
:
tag
:
prod
This diff is collapsed.
Click to expand it.
support-files/templates/#etc#codecc#application-task.yml
deleted
100644 → 0
+
0
-
23
View file @
d0449072
# 服务配置文件模板
spring
:
application
:
name
:
task${service-suffix}
desc
:
Task Service
data
:
mongodb
:
uri
:
mongodb://__MONGODB_USER__:__MONGODB_PASS__@__MONGODB_IP__:__MONGODB_PORT__/db_task?replicaSet=rs0&slaveOk=true
# 服务器端口配置,在同一台机器上部署多个微服务,端口号要不同 23910
server
:
port
:
__CODECC_TASK_PORT__
# 服务端口
time
:
analysis
:
maxhour
:
__CODECC_ANALYSIS_MAXHOUR__
devops
:
imageName
:
__DEVOPS_DISPATCH_DOCER_DEFAULT_IMAGE_NAME__
retry
:
attempt
:
__CODECC_RETRY_ATTEMPT__
interval
:
__CODECC_RETRY_INTERVAL__
This diff is collapsed.
Click to expand it.
support-files/templates/#etc#codecc#common.yml
deleted
100644 → 0
+
0
-
67
View file @
d0449072
# Common config Template 重复的通用的配置抽离在到
spring
:
application
:
version
:
4.0.0
# consul config do not need to change
redis
:
host
:
__REDIS_IP__
port
:
__REDIS_PORT__
password
:
__REDIS_PASS__
pool
:
maxActive
:
16
maxWait
:
2000
maxIdle
:
16
minIdle
:
0
rabbitmq
:
virtual-host
:
__RABBITMQ_CODECC_VHOST__
username
:
__RABBITMQ_USERNAME__
password
:
__RABBITMQ_PASSWORD__
addresses
:
__RABBITMQ_HOST__:__RABBITMQ_PORT__
cloud
:
consul
:
discovery
:
tags
:
__DEVOPS_CONSUL_TAG__
health-check-path
:
/management/health
heartbeat
:
enabled
:
true
query-passing
:
true
preferIpAddress
:
true
port
:
__DEVOPS_CONSUL_PORT__
http
:
encoding
:
charset
:
UTF-8
enabled
:
true
force
:
true
# http concurrency
server
:
servlet-path
:
/
undertow
:
worker-threads
:
100
# monitor path config
management
:
security
:
enabled
:
false
context-path
:
/management
auth
:
envName
:
prod
url
:
__CODECC_AUTH_URL__
codeccCode
:
__APP_CODE__
codeccSecret
:
__APP_TOKEN__
systemId
:
__CODECC_SYSTEM_ID__
resourceType
:
__CODECC_RESOURCE_TYPE__
devopsGateway
:
host
:
__DEVOPS_GATEWAY_HOST__:__DEVOPS_GATEWAY_PORT__
codeccGateway
:
host
:
__CODECC_GATEWAY_HOST__:__CODECC_GATEWAY_PORT__
api
:
__CODECC_GATEWAY_HOST__:__CODECC_GATEWAY_PORT__
service-suffix
:
"
-__BKCI_CONSUL_TAG__"
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help