From a9820840f4f3c66e36b4c1d70a88ab9268f2335c Mon Sep 17 00:00:00 2001 From: "mian-bin@hotmail.com" Date: Wed, 26 Mar 2025 18:45:21 +0800 Subject: [PATCH] =?UTF-8?q?v3=20=E6=8F=90=E4=BA=A4=E6=96=B0=E7=9A=84?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=EF=BC=8C=E4=BD=86=E6=98=AF=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E8=BF=90=E8=A1=8C=EF=BC=8C=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E8=A6=81=E8=BF=90=E8=A1=8C=EF=BC=8C=E6=8A=8Aci-process?= =?UTF-8?q?=E5=8D=B8=E8=BD=BDpom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/CopilotChatHistory.xml | 57 +++++ .../common/api/constant/CommonConstants.java | 160 +++++++++++++ .../api/constant/CommonMessageCode.java | 225 ++++++++++++++++++ .../ci/common/api/constant/HttpStatus.java | 119 +++++++++ .../api/constant/PipelineConstants.java | 51 ++++ .../common/api/constant/StringConstant.java | 30 +++ .../ci/common/api/enums/AgentAction.java | 20 ++ .../ci/common/api/enums/AgentStatus.java | 64 +++++ .../ci/common/api/enums/BuildReviewType.java | 26 ++ .../ci/common/api/enums/BusTypeEnum.java | 21 ++ .../api/enums/CheckoutRepositoryType.java | 31 +++ .../casic/ci/common/api/enums/CrudEnum.java | 22 ++ .../casic/ci/common/api/enums/EnumLoader.java | 39 +++ .../ci/common/api/enums/EnumModifier.java | 14 ++ .../ci/common/api/enums/FrontendTypeEnum.java | 32 +++ .../cd/casic/ci/common/api/enums/OSType.java | 22 ++ .../ci/common/api/enums/RepositoryConfig.java | 67 ++++++ .../ci/common/api/enums/RepositoryType.java | 25 ++ .../api/enums/RequestChannelTypeEnum.java | 24 ++ .../cd/casic/ci/common/api/enums/ScmCode.java | 37 +++ .../cd/casic/ci/common/api/enums/ScmType.java | 44 ++++ .../ci/common/api/enums/TaskStatusEnum.java | 26 ++ .../api/enums/TriggerRepositoryType.java | 34 +++ modules/ci-commons/common-pipeline/pom.xml | 6 + .../pipeline/CommonPipelineApplication.java | 13 - .../common/pipeline/container/Container.java | 4 +- .../common/pipeline/pojo/BuildFormValue.java | 2 + .../pojo/cascade/BuildCascadeProps.java | 33 +++ .../pipeline/pojo/cascade/CascadeParam.java | 68 ++++++ .../pojo/cascade/RepoRefCascadeParam.java | 85 +++++++ .../common/pipeline/pojo/element/Element.java | 175 ++++++++++++++ .../element/ElementAdditionalOptions.java | 73 ++++++ .../pojo/element/ElementBaseInfo.java | 28 +++ .../pojo/element/ElementPostInfo.java | 28 +++ .../pipeline/pojo/element/ElementProp.java | 37 +++ .../pipeline/pojo/element/EmptyElement.java | 24 ++ .../pojo/element/SubPipelineCallElement.java | 50 ++++ .../pojo/element/agent/CodeGitElement.java | 68 ++++++ .../pojo/element/agent/CodeGitlabElement.java | 67 ++++++ .../pojo/element/agent/CodeSvnElement.java | 72 ++++++ .../pojo/element/agent/GithubElement.java | 68 ++++++ .../element/agent/LinuxScriptElement.java | 92 +++++++ .../agent/ManualReviewUserTaskElement.java | 106 +++++++++ .../element/agent/WindowsScriptElement.java | 82 +++++++ .../pojo/element/atom/BeforeDeleteParam.java | 21 ++ .../element/atom/ElementBatchCheckParam.java | 31 +++ .../pojo/element/atom/ElementCheckResult.java | 23 ++ .../pojo/element/atom/ElementHolder.java | 22 ++ .../pojo/element/atom/ManualReviewParam.java | 70 ++++++ .../element/atom/ManualReviewParamPair.java | 21 ++ .../element/atom/ManualReviewParamType.java | 30 +++ .../atom/PipelineCheckFailedReason.java | 60 +++++ .../pojo/element/atom/SubPipelineType.java | 15 ++ .../pojo/market/AtomBuildArchiveElement.java | 63 +++++ .../pojo/market/MarketBuildAtomElement.java | 78 ++++++ .../market/MarketBuildLessAtomElement.java | 75 ++++++ .../pojo/market/MarketCheckImageElement.java | 42 ++++ .../pojo/matrix/MatrixStatusElement.java | 83 +++++++ .../pojo/quality/QualityGateInElement.java | 74 ++++++ .../pojo/quality/QualityGateOutElement.java | 76 ++++++ .../pojo/setting/PipelineRunLockType.java | 52 ++++ .../pojo/setting/PipelineSetting.java | 151 ++++++++++++ .../setting/PipelineSubscriptionType.java | 26 ++ .../pipeline/pojo/setting/Subscription.java | 53 +++++ .../pojo/setting/SubscriptionGroup.java | 18 ++ .../pojo/time/BuildRecordTimeCost.java | 28 +++ .../pojo/time/BuildRecordTimeLine.java | 35 +++ .../pojo/time/BuildTimestampType.java | 48 ++++ .../pojo/transfer/ElementInsertBody.java | 31 +++ .../pojo/transfer/ElementInsertResponse.java | 23 ++ .../common/pipeline/pojo/transfer/IfType.java | 32 +++ .../pipeline/pojo/transfer/MetaData.java | 17 ++ .../pipeline/pojo/transfer/PositionBody.java | 21 ++ .../pojo/transfer/PositionResponse.java | 48 ++++ .../pipeline/pojo/transfer/PreStep.java | 70 ++++++ .../pojo/transfer/PreviewResponse.java | 35 +++ .../pipeline/pojo/transfer/Resources.java | 53 +++++ .../pipeline/pojo/transfer/RunAtomParam.java | 52 ++++ .../pipeline/pojo/transfer/TemplateInfo.java | 18 ++ .../pojo/transfer/TransferActionType.java | 26 ++ .../pipeline/pojo/transfer/TransferBody.java | 25 ++ .../pipeline/pojo/transfer/TransferMark.java | 30 +++ .../pojo/transfer/TransferResponse.java | 31 +++ .../pojo/transfer/TransferVMBaseOS.java | 25 ++ .../pipeline/pojo/transfer/YamlMetaData.java | 16 ++ .../pojo/transfer/YamlMetaDataJsonFilter.java | 14 ++ .../pojo/transfer/YamlWithVersion.java | 22 ++ .../pipeline/utils/BuildStatusSwitcher.java | 184 ++++++++++++++ .../pipeline/utils/CascadePropertyUtils.java | 48 ++++ .../ci/common/pipeline/utils/Constants.java | 18 ++ .../common/pipeline/utils/ElementUtils.java | 28 +++ .../common/pipeline/utils/HeartBeatUtils.java | 20 ++ .../ci/common/pipeline/utils/ModelUtils.java | 177 ++++++++++++++ .../common/pipeline/utils/ParameterUtils.java | 46 ++++ .../common/pipeline/utils/TransferUtil.java | 38 +++ .../utils/TriggerElementPropUtils.java | 36 +++ 96 files changed, 4736 insertions(+), 14 deletions(-) create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/constant/CommonConstants.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/constant/CommonMessageCode.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/constant/HttpStatus.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/constant/PipelineConstants.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/constant/StringConstant.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/AgentAction.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/AgentStatus.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/BuildReviewType.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/BusTypeEnum.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/CheckoutRepositoryType.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/CrudEnum.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/EnumLoader.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/EnumModifier.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/FrontendTypeEnum.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/OSType.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/RepositoryConfig.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/RepositoryType.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/RequestChannelTypeEnum.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/ScmCode.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/ScmType.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/TaskStatusEnum.java create mode 100644 modules/ci-commons/common-api/src/main/java/cd/casic/ci/common/api/enums/TriggerRepositoryType.java delete mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/CommonPipelineApplication.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/cascade/BuildCascadeProps.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/cascade/CascadeParam.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/cascade/RepoRefCascadeParam.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/Element.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/ElementAdditionalOptions.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/ElementBaseInfo.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/ElementPostInfo.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/ElementProp.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/EmptyElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/SubPipelineCallElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/agent/CodeGitElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/agent/CodeGitlabElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/agent/CodeSvnElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/agent/GithubElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/agent/LinuxScriptElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/agent/ManualReviewUserTaskElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/agent/WindowsScriptElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/atom/BeforeDeleteParam.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/atom/ElementBatchCheckParam.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/atom/ElementCheckResult.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/atom/ElementHolder.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/atom/ManualReviewParam.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/atom/ManualReviewParamPair.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/atom/ManualReviewParamType.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/atom/PipelineCheckFailedReason.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/element/atom/SubPipelineType.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/market/AtomBuildArchiveElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/market/MarketBuildAtomElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/market/MarketBuildLessAtomElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/market/MarketCheckImageElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/matrix/MatrixStatusElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/quality/QualityGateInElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/quality/QualityGateOutElement.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/setting/PipelineRunLockType.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/setting/PipelineSetting.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/setting/PipelineSubscriptionType.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/setting/Subscription.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/setting/SubscriptionGroup.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/time/BuildRecordTimeCost.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/time/BuildRecordTimeLine.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/time/BuildTimestampType.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/ElementInsertBody.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/ElementInsertResponse.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/IfType.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/MetaData.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/PositionBody.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/PositionResponse.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/PreStep.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/PreviewResponse.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/Resources.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/RunAtomParam.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/TemplateInfo.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/TransferActionType.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/TransferBody.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/TransferMark.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/TransferResponse.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/TransferVMBaseOS.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/YamlMetaData.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/YamlMetaDataJsonFilter.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/pojo/transfer/YamlWithVersion.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/utils/BuildStatusSwitcher.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/utils/CascadePropertyUtils.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/utils/Constants.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/utils/ElementUtils.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/utils/HeartBeatUtils.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/utils/ModelUtils.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/utils/ParameterUtils.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/utils/TransferUtil.java create mode 100644 modules/ci-commons/common-pipeline/src/main/java/cd/casic/ci/common/pipeline/utils/TriggerElementPropUtils.java diff --git a/.idea/CopilotChatHistory.xml b/.idea/CopilotChatHistory.xml index 7071cbb..6fcb2db 100644 --- a/.idea/CopilotChatHistory.xml +++ b/.idea/CopilotChatHistory.xml @@ -3,6 +3,63 @@