diff --git a/src/backend/ci/core/common/common-event/src/main/kotlin/com/tencent/devops/common/event/dispatcher/pipeline/mq/MQ.kt b/src/backend/ci/core/common/common-event/src/main/kotlin/com/tencent/devops/common/event/dispatcher/pipeline/mq/MQ.kt index 5c3421b42f9..ad987677ff7 100644 --- a/src/backend/ci/core/common/common-event/src/main/kotlin/com/tencent/devops/common/event/dispatcher/pipeline/mq/MQ.kt +++ b/src/backend/ci/core/common/common-event/src/main/kotlin/com/tencent/devops/common/event/dispatcher/pipeline/mq/MQ.kt @@ -217,11 +217,6 @@ object MQ { const val ROUTE_MEASURE_REQUEST_EVENT = "r.measure.request.event" const val QUEUE_MEASURE_REQUEST_EVENT = "q.measure.request.event" - // 流水线设置发生变化的事件广播 - const val EXCHANGE_PIPELINE_SETTING_CHANGE_FANOUT = "e.engine.pipeline.setting.change.fanout" - const val ROUTE_PIPELINE_SETTING_CHANGE = "r.engine.pipeline.setting.change" - const val QUEUE_PIPELINE_SETTING_CHANGE = "q.engine.pipeline.setting.change" - // webSocket消息 const val EXCHANGE_WEBSOCKET_TMP_FANOUT = "e.websocket.fanout" const val ROUTE_WEBSOCKET_TMP_EVENT = "r.websocket.file" diff --git a/src/backend/ci/core/common/common-pipeline/build.gradle.kts b/src/backend/ci/core/common/common-pipeline/build.gradle.kts index add03776d31..2f6dad8ea9a 100644 --- a/src/backend/ci/core/common/common-pipeline/build.gradle.kts +++ b/src/backend/ci/core/common/common-pipeline/build.gradle.kts @@ -26,8 +26,8 @@ */ dependencies { api(project(":core:common:common-api")) - api(project(":core:common:common-event")) api(project(":core:common:common-expression")) + api(project(":core:common:common-service")) api("org.apache.commons:commons-text") api("org.slf4j:slf4j-api") api("com.squareup.okhttp3:okhttp") diff --git a/src/backend/ci/core/common/common-pipeline/src/main/kotlin/com/tencent/devops/common/pipeline/event/PipelineSettingChangeEvent.kt b/src/backend/ci/core/common/common-pipeline/src/main/kotlin/com/tencent/devops/common/pipeline/event/PipelineSettingChangeEvent.kt deleted file mode 100644 index fb4ea717ac1..00000000000 --- a/src/backend/ci/core/common/common-pipeline/src/main/kotlin/com/tencent/devops/common/pipeline/event/PipelineSettingChangeEvent.kt +++ /dev/null @@ -1,49 +0,0 @@ -/* - * 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.pipeline.event - -import com.tencent.devops.common.event.annotation.Event -import com.tencent.devops.common.event.dispatcher.pipeline.mq.MQ -import com.tencent.devops.common.event.enums.ActionType -import com.tencent.devops.common.event.pojo.pipeline.IPipelineEvent - -/** - * 流水线Setting变化事件 - * - * @version 1.0 - */ -@Event(exchange = MQ.EXCHANGE_PIPELINE_SETTING_CHANGE_FANOUT) -data class PipelineSettingChangeEvent( - override val source: String, - override val projectId: String, - override val pipelineId: String, - override val userId: String, - override var actionType: ActionType = ActionType.REFRESH, - override var delayMills: Int = 0, - val pipelineName: String -) : IPipelineEvent(actionType, source, projectId, pipelineId, userId, delayMills)