Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:蓝盾本地开发实现 #9576 #10132

Open
wants to merge 64 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
bbfaff0
feat: 指定模块统一打包插件 #8672
fcfang123 Jun 6, 2023
2622ec6
feat: 指定模块统一打包插件 #8672
fcfang123 Jun 7, 2023
262aeec
feat:蓝盾本地开发实现 #9576
fcfang123 Jun 8, 2023
c1d1289
feat: 指定模块统一打包插件 #8672
fcfang123 Jun 8, 2023
1652de2
feat: 指定模块统一打包插件 #8672
fcfang123 Jun 12, 2023
5297021
feat:蓝盾本地开发实现 #9576
fcfang123 Jun 13, 2023
1304a2f
feat:蓝盾本地开发实现 #9576
fcfang123 Jun 14, 2023
4a88601
feat: 指定模块统一打包插件 #8672
fcfang123 Jun 14, 2023
e9cbce8
feat: 指定模块统一打包插件 #8672
fcfang123 Jun 15, 2023
afa30d3
feat: 指定模块统一打包插件 #8672
fcfang123 Jun 15, 2023
79a49dc
feat: 指定模块统一打包插件 #8672
stubenhuang Jun 13, 2023
8933399
feat: 指定模块统一打包插件 #8672
fcfang123 Jul 31, 2023
85762ce
feat: 指定模块统一打包插件 #8672
fcfang123 Jul 31, 2023
73d0f8e
feat: 指定模块统一打包插件 #8672
fcfang123 Aug 23, 2023
4ae4fc4
feat: 指定模块统一打包插件 #8672
fcfang123 Aug 9, 2023
f268e07
feat: 指定模块统一打包插件 #8672
fcfang123 Aug 23, 2023
c4d5e07
feat:蓝盾本地开发实现 #9576
fcfang123 Aug 16, 2023
1ba53c1
feat: 指定模块统一打包插件 #8672
fcfang123 Aug 17, 2023
fedfddb
feat: 指定模块统一打包插件 #8672
fcfang123 Aug 20, 2023
288b96d
feat:蓝盾本地开发实现 #9576
fcfang123 Aug 21, 2023
6c3b7e5
feat: 指定模块统一打包插件 #8672
fcfang123 Aug 23, 2023
390b2e2
feat:蓝盾本地开发实现 #9576
fcfang123 Aug 25, 2023
481d6c6
feat: 指定模块统一打包插件 #8672
fcfang123 Aug 28, 2023
6979c7c
feat: 指定模块统一打包插件 #8672
fcfang123 Sep 6, 2023
e71d106
feat: 指定模块统一打包插件 #8672
stubenhuang Sep 6, 2023
f513822
feat: 指定模块统一打包插件 #8672
stubenhuang Sep 6, 2023
442ce3e
feat: 指定模块统一打包插件 #8672
stubenhuang Sep 8, 2023
05a8f86
feat: 指定模块统一打包插件 #8672
stubenhuang Sep 8, 2023
d97b16a
feat: 指定模块统一打包插件 #8672
stubenhuang Sep 8, 2023
3f6f89c
feat: 指定模块统一打包插件 #8672
fcfang123 Sep 8, 2023
70dd2b5
feat: 指定模块统一打包插件 #8672
fcfang123 Sep 8, 2023
ea6207c
feat: 指定模块统一打包插件 #8672
fcfang123 Sep 8, 2023
ee22977
feat: 指定模块统一打包插件 #8672
fcfang123 Sep 8, 2023
f61e2cd
feat: 指定模块统一打包插件 #8672
stubenhuang Sep 11, 2023
7dbe035
feat: 指定模块统一打包插件 #8672
stubenhuang Sep 11, 2023
205e53f
feat: 指定模块统一打包插件 #8672
stubenhuang Sep 12, 2023
0dc76b2
feat: 指定模块统一打包插件 #8672
stubenhuang Sep 14, 2023
07f8c40
feat: 指定模块统一打包插件 #8672
fcfang123 Oct 8, 2023
16a74dc
feat: 指定模块统一打包插件 #8672
fcfang123 Oct 9, 2023
25d707c
feat: 指定模块统一打包插件 #8672
fcfang123 Oct 10, 2023
a779b3c
feat: 指定模块统一打包插件 #8672
stubenhuang Oct 13, 2023
a96b837
feat:蓝盾本地开发实现 #9576
fcfang123 Oct 18, 2023
0fbcc39
feat:蓝盾本地开发实现 #9576
fcfang123 Oct 18, 2023
46fe034
feat:蓝盾本地开发实现 #9576
fcfang123 Oct 18, 2023
e7d7d55
feat:蓝盾本地开发实现 #9576
fcfang123 Oct 18, 2023
c0553b3
feat:蓝盾本地开发实现 #9576
fcfang123 Oct 18, 2023
a444e12
feat:蓝盾本地开发实现 #9576
fcfang123 Oct 18, 2023
025e497
feat:蓝盾本地开发实现 #9576
fcfang123 Oct 18, 2023
acb4761
feat:蓝盾本地开发实现 #9576
fcfang123 Oct 18, 2023
dacad00
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 18, 2024
927cba4
Merge branch 'tencent-master' into issue-9576-2
fcfang123 Mar 18, 2024
4ad5939
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 20, 2024
a73bb3b
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 20, 2024
0458847
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 20, 2024
7beee20
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 20, 2024
23675b5
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 20, 2024
0b47746
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 20, 2024
b927791
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 20, 2024
63bf856
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 20, 2024
57cf67d
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 20, 2024
d77913e
feat:蓝盾本地开发实现 #9576
fcfang123 Mar 29, 2024
461b6a1
feat:蓝盾本地开发实现 #9576
fcfang123 Apr 8, 2024
bb3bc74
feat:蓝盾本地开发实现 #9576
fcfang123 Apr 22, 2024
ba928c1
feat:蓝盾本地开发实现 #9576
fcfang123 Apr 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions helm-charts/core/ci/base/default_env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ bkCiSm4Enabled: false
bkCiMonitorRegister: false
bkCiBuildDataClearSwitch: false
bkCiOpenapiApiAuth: false
bkCiLocalRunEnabled: false
bkCiLocalRunTarget: host.docker.internal:8081
4 changes: 4 additions & 0 deletions scripts/bkenv.properties
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ BK_CI_KUBERNETES_WEBCONSOLE_PROXY=
BK_CI_SM4_KEY=s31^dDjd!3k
# BK_CI_SM4_ENABLED
BK_CI_SM4_ENABLED=false
# BK_CI_LOCAL_RUN_ENABLED
BK_CI_LOCAL_RUN_ENABLED=false
# BK_CI_LOCAL_RUN_TARGET
BK_CI_LOCAL_RUN_TARGET=host.docker.internal:8081

##########
# 3-微服务配置
Expand Down
2 changes: 2 additions & 0 deletions src/backend/ci/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ build.yml
.codecc
*.log.gz
i18n/
core/multijar/boot-multijar/src/main/resources/application-*.yml
core/multijar/boot-multijar/bkenv.properties
1 change: 1 addition & 0 deletions src/backend/ci/buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dependencies {
implementation("org.apache.logging.log4j:log4j-core:2.17.1")
implementation("org.owasp:dependency-check-gradle:7.1.0.1")
implementation("com.google.cloud.tools:jib-gradle-plugin:3.3.1")
implementation("org.springframework.boot:spring-boot-gradle-plugin:2.6.13")
implementation("com.github.jk1:gradle-license-report:1.17") // 2.x need gradle-7.0
implementation("com.mysql:mysql-connector-j:8.0.33")
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,15 @@ plugins {
val toImageRepo = System.getProperty("to.image.repo")
val toImageTag = System.getProperty("to.image.tag")
var toImage = System.getProperty("jib.to.image")

// 加这个判断 , 主要是为了编译kts时不报错
if (toImage.isNullOrBlank() || (toImageRepo.isNullOrBlank() && toImageTag.isNullOrBlank())) {
val service = name.replace("boot-", "").replace("-tencent", "")

if (toImage.isNullOrBlank() && !toImageRepo.isNullOrBlank()) {
toImage = toImageRepo.let {
if (toImageRepo.endsWith("/")) it else it + "/"
} + "bkci-" + service + ":" + toImageTag
}

val configNamespace = System.getProperty("config.namespace")

val jvmFlagList = System.getProperty("jvmFlags.file")?.let { File(it).readLines() } ?: emptyList()

val finalJvmFlags = mutableListOf(
Expand All @@ -53,7 +49,7 @@ if (toImage.isNullOrBlank() || (toImageRepo.isNullOrBlank() && toImageTag.isNull
"-XX:+PrintTenuringDistribution",
"-XX:+PrintGCDetails",
"-XX:+PrintGCDateStamps",
"-XX:MaxGCPauseMillis=200",
"-XX:MaxGCPauseMillis=100",
"-XX:+UseG1GC",
"-XX:NativeMemoryTracking=summary",
"-XX:+HeapDumpOnOutOfMemoryError",
Expand Down Expand Up @@ -81,6 +77,7 @@ if (toImage.isNullOrBlank() || (toImageRepo.isNullOrBlank() && toImageTag.isNull
"-Dio.undertow.legacy.cookie.ALLOW_HTTP_SEPARATORS_IN_V0=true",
"-Dserver.port=80"
)

finalJvmFlags.addAll(jvmFlagList)

jib {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*
* 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.
*/
tasks.register("multiBootJar") {
val finalModules = System.getProperty("devops.multi.from") ?: localRunMultiModules
val finalModulesList = finalModules.split(",").toMutableList()
rootProject.subprojects.filter {
isSpecifiedModulePath(it.path, finalModulesList)
}.forEach { subProject -> addDependencies(subProject.path) }
dependsOn("copyToRelease")
}

fun isSpecifiedModulePath(path: String, multiModuleList: List<String>): Boolean {
if (!path.contains("core"))
return false
return path.contains("biz") && multiModuleList.any { module -> path.contains(module) }
}

fun addDependencies(path: String) {
dependencies {
add("implementation", project(path))
}
}

val localRunMultiModules = "process,auth,image,environment,repository,ticket,project," +
"notify,quality,dispatch,dispatch-docker,dispatch-kubernetes,artifactory," +
"monitoring,plugin,websocket,worker,misc,store,log"
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* 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.
*/
import org.springframework.boot.gradle.tasks.bundling.BootJar
import org.springframework.boot.gradle.tasks.run.BootRun
import java.util.Properties

tasks.register<BootRun>("multiBootRun") {
doFirst {
systemProperty("devops.multi.from", localRunMultiServices)
systemProperty("spring.datasource.url", System.getProperty("mysqlURL"))
systemProperty("spring.datasource.username", System.getProperty("mysqlUser"))
systemProperty("spring.datasource.password", System.getProperty("mysqlPasswd"))
systemProperty("spring.main.allow-circular-references", "true")
systemProperty("spring.cloud.config.enabled", "false")
systemProperty("spring.cloud.config.fail-fast", "true")
systemProperty("spring.jmx.enabled", "true")
systemProperty("jasypt.encryptor.bootstrap", "false")
systemProperty("sun.jnu.encoding", "UTF-8")
systemProperty("file.encoding", "UTF-8")
systemProperty("spring.cloud.consul.enabled", "false")
systemProperty("spring.cloud.consul.discovery.enabled", "false")
systemProperty("server.port", "8081")
systemProperty("local.run", "true")
systemProperty("service.log.dir", joinPath(projectDir.absolutePath, "log"))
}
dependsOn("multiBootJar")
val bootJarTask = tasks.getByName<BootJar>("bootJar")
mainClass.set(bootJarTask.mainClass)
classpath = bootJarTask.classpath
}

fun loadProperties(basePath: String): Properties {
val properties = Properties()
properties.load(file(basePath).inputStream())
return properties
}

/**
* 返回路径
*/
fun joinPath(vararg folders: String) = folders.joinToString(File.separator)
tasks.getByName("compileKotlin").dependsOn("replacePlaceholders")

val localRunMultiServices = "process,auth,environment,repository,ticket,project,notify,quality,dispatch," +
"dispatch-kubernetes,artifactory,monitoring,plugin,websocket,worker,misc,store,log,image"
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
/*
* 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.
*/
import java.util.Properties

tasks.register("replacePlaceholders") {
doLast {
val destDir = joinPath(projectDir.absolutePath, "src", "main", "resources")
// 每次启动时,首先清空application文件,再根据模板文件重新渲染
deleteFiles(destDir)

val rootDirPath = rootDir.absolutePath.replace(
"${File.separator}src${File.separator}backend${File.separator}ci",
""
)
// 基础变量
val baseBkEnvPath = joinPath(rootDirPath, "scripts", "bkenv.properties")
val bkEnvProperties = loadProperties(baseBkEnvPath)
val bkEnvFileContent = renderTemplate(baseBkEnvPath, bkEnvProperties)
bkEnvProperties.load(bkEnvFileContent.byteInputStream())
// 自定义变量
val bkEnvPath = joinPath(projectDir.absolutePath, "bkenv.properties")
file(bkEnvPath).let {
if (it.exists()) {
bkEnvProperties.load(it.inputStream())
}
}
// 渲染模板
val templatesDir = joinPath(rootDirPath, "support-files", "templates")
generateFiles(templatesDir, destDir, bkEnvProperties)
}
}

tasks.register("deleteApplicationTemplate") {
val destDir = joinPath(projectDir.absolutePath, "src", "main", "resources")
deleteFiles(destDir)
}

fun deleteFiles(dir: String) {
val destDirFile = File(dir)
destDirFile.listFiles()?.forEach { file ->
if (file.isFile && file.name != "application.yml") {
file.delete()
}
}
}

fun loadProperties(basePath: String): Properties {
val properties = Properties()
properties.load(file(basePath).inputStream())
return properties
}

fun renderTemplate(templatePath: String, properties: Properties): String {
var templateContent = file(templatePath).readText()
properties.forEach { key, value ->
templateContent = templateContent.replace("$${key}", value.toString())
}
return templateContent
}

fun generateFiles(templatesDir: String, destDir: String, properties: Properties) {
val templatesDirFile = file(templatesDir)
templatesDirFile.walkTopDown().forEach { templateFile ->
if (templateFile.isFile && templateFile.name.endsWith(".yml")) {
var content = templateFile.readText()
properties.forEach { key, value ->
content = content.replace("__${key}__", value.toString())
}
val destFileName = if (templateFile.name == "#etc#ci#common.yml") {
"application-common.yml"
} else {
templateFile.name.replace("#etc#ci#", "")
}
val destFile = File(joinPath(destDir, destFileName))
destFile.parentFile.mkdirs()
destFile.writeText(content)
}
}
}

/**
* 返回路径
*/
fun joinPath(vararg folders: String) = folders.joinToString(File.separator)
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import com.tencent.devops.common.client.ClientTokenService
import com.tencent.devops.common.event.dispatcher.pipeline.mq.MeasureEventDispatcher
import com.tencent.devops.common.event.dispatcher.pipeline.mq.MQ
import com.tencent.devops.common.web.mq.EXTEND_RABBIT_TEMPLATE_NAME
import com.tencent.devops.common.event.dispatcher.pipeline.mq.Tools
import org.springframework.amqp.core.Binding
import org.springframework.amqp.core.BindingBuilder
import org.springframework.amqp.core.DirectExchange
Expand Down Expand Up @@ -120,17 +121,18 @@ class AuthCoreConfiguration {
@Autowired refreshListener: AuthRefreshEventListener,
@Autowired messageConverter: Jackson2JsonMessageConverter
): SimpleMessageListenerContainer {
val container = SimpleMessageListenerContainer(connectionFactory)
container.setQueueNames(authRefreshQueue.name)
container.setConcurrentConsumers(1)
container.setMaxConcurrentConsumers(10)
container.setAmqpAdmin(rabbitAdmin)
container.setStartConsumerMinInterval(5000)
container.setConsecutiveActiveTrigger(5)
val adapter = MessageListenerAdapter(refreshListener, refreshListener::execute.name)
adapter.setMessageConverter(messageConverter)
container.setMessageListener(adapter)
return container
return Tools.createSimpleMessageListenerContainerByAdapter(
connectionFactory = connectionFactory,
queue = authRefreshQueue,
rabbitAdmin = rabbitAdmin,
adapter = adapter,
startConsumerMinInterval = 5000,
consecutiveActiveTrigger = 5,
concurrency = 1,
maxConcurrency = 5
)
}

@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,9 @@ object PropertyUtil {
properties.load(propertyFileContent.reader())
return properties[propertyKey]?.toString()
}

/**
* 判断是否为本地运行
*/
fun isLocalRun() = System.getProperty("local.run") == "true"
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.tencent.devops.common.client.ClientAutoConfiguration
com.tencent.devops.common.client.ClientAutoConfiguration
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import com.zaxxer.hikari.HikariDataSource
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.AutoConfigureBefore
import org.springframework.boot.autoconfigure.AutoConfigureOrder
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
import org.springframework.boot.autoconfigure.jooq.JooqAutoConfiguration
import org.springframework.context.annotation.Bean
Expand All @@ -54,6 +55,7 @@ import javax.sql.DataSource
@AutoConfigureBefore(DataSourceAutoConfiguration::class, JooqAutoConfiguration::class)
@Import(DBBaseConfiguration::class)
@EnableTransactionManagement
@ConditionalOnMissingClass("com.tencent.devops.multijar.MultijarDslContextConfiguration")
class DBAutoConfiguration {

@Value("\${spring.datasource.url:#{null}}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass
import org.springframework.context.annotation.Bean

@Suppress("ALL")
@ConditionalOnMissingClass("com.tencent.devops.multijar.MultijarDslContextConfiguration")
class MQConfiguration @Autowired constructor() {

@Value("\${dispatch.demoteQueue.concurrency:2}")
Expand Down
Loading
Loading