You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2025/10/16 03:21:39 UTC

(incubator-devlake) branch main updated: feat(plugins): initial implementation of argocd (#8610)

This is an automated email from the ASF dual-hosted git repository.

klesh pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new 60e7f22ee feat(plugins): initial implementation of argocd (#8610)
60e7f22ee is described below

commit 60e7f22ee88157c51b15c9c4c56f5b11f3331c1b
Author: Richard Boisvert <rb...@devolutions.net>
AuthorDate: Wed Oct 15 23:21:35 2025 -0400

    feat(plugins): initial implementation of argocd (#8610)
    
    This commit implements a new ArgoCD plugin that enables deployment frequency tracking and DORA metrics calculation by collecting sync operation data from ArgoCD applications.
    It covers rollouts, deployments, replicaset, etc and are sorted per project.
    
    Included is also a grafana dashboard to show simple statistics for the applications.
    
    Since I used the .devcontainers, I also updated the version or else mockery would not work. The sorting of the plugins was also updated to keep them in order.
    
    IMPORTANT: The applications in ArgoCD must be synced at least once for the plugin to collect data. Importing them via an application set does not count as a sync operation.
    
    https://github.com/apache/incubator-devlake/issues/5207
---
 .devcontainer/Dockerfile                           |   4 +-
 .devcontainer/devcontainer.json                    |   2 +-
 backend/plugins/argocd/README.md                   |  17 +
 backend/plugins/argocd/api/blueprint_v200.go       | 141 ++++
 backend/plugins/argocd/api/connection_api.go       | 206 +++++
 backend/plugins/argocd/api/init.go                 |  51 ++
 backend/plugins/argocd/api/remote_api.go           | 170 ++++
 backend/plugins/argocd/api/scope_api.go            | 119 +++
 backend/plugins/argocd/api/scope_config_api.go     | 110 +++
 backend/plugins/argocd/argocd.go                   |  52 ++
 backend/plugins/argocd/impl/impl.go                | 156 ++++
 backend/plugins/argocd/models/application.go       |  71 ++
 backend/plugins/argocd/models/application_test.go  |  43 +
 backend/plugins/argocd/models/connection.go        |  47 ++
 backend/plugins/argocd/models/connection_test.go   |  41 +
 .../migrationscripts/20250101_add_init_tables.go   |  48 ++
 .../models/migrationscripts/archived/models.go     |  91 +++
 .../argocd/models/migrationscripts/register.go     |  28 +
 backend/plugins/argocd/models/scope_config.go      |  33 +
 backend/plugins/argocd/models/sync_operation.go    |  45 ++
 backend/plugins/argocd/tasks/api_client.go         |  45 ++
 .../plugins/argocd/tasks/application_collector.go  |  76 ++
 .../plugins/argocd/tasks/application_extractor.go  | 115 +++
 backend/plugins/argocd/tasks/register.go           |  97 +++
 .../argocd/tasks/sync_operation_collector.go       | 107 +++
 .../argocd/tasks/sync_operation_collector_test.go  |  68 ++
 .../argocd/tasks/sync_operation_convertor.go       | 268 +++++++
 .../argocd/tasks/sync_operation_convertor_test.go  | 103 +++
 .../argocd/tasks/sync_operation_extractor.go       | 203 +++++
 backend/plugins/argocd/tasks/task_data.go          |  61 ++
 backend/plugins/argocd/tasks/task_data_test.go     |  55 ++
 .../customize/e2e/import_issue_changelogs_test.go  |   2 +-
 .../customize/e2e/import_issue_worklogs_test.go    |   4 +-
 backend/plugins/table_info_test.go                 |   2 +
 backend/test/e2e/manual/argocd/argocd_test.go      | 155 ++++
 backend/test/e2e/manual/argocd/models.go           |  29 +
 .../src/plugins/register/argocd/assets/icon.svg    |  24 +
 .../plugins/register/{slack => argocd}/config.tsx  |  52 +-
 .../src/plugins/register/argocd/index.ts           |  32 +-
 .../src/plugins/register/argocd/transformation.tsx | 146 ++++
 config-ui/src/plugins/register/azure/config.tsx    |   4 +-
 config-ui/src/plugins/register/bamboo/config.tsx   |   2 +-
 .../plugins/register/bitbucket-server/config.tsx   |   2 +-
 .../src/plugins/register/bitbucket/config.tsx      |   2 +-
 config-ui/src/plugins/register/circleci/config.tsx |   2 +-
 config-ui/src/plugins/register/github/config.tsx   |   2 +-
 config-ui/src/plugins/register/gitlab/config.tsx   |   2 +-
 config-ui/src/plugins/register/index.ts            |   2 +
 config-ui/src/plugins/register/jenkins/config.tsx  |   2 +-
 config-ui/src/plugins/register/jira/config.tsx     |   2 +-
 config-ui/src/plugins/register/opsgenie/config.tsx |   2 +-
 .../src/plugins/register/pagerduty/config.tsx      |   2 +-
 config-ui/src/plugins/register/q-dev/config.tsx    |   2 +-
 config-ui/src/plugins/register/slack/config.tsx    |   2 +-
 .../src/plugins/register/sonarqube/config.tsx      |   2 +-
 config-ui/src/plugins/register/tapd/config.tsx     |   2 +-
 config-ui/src/plugins/register/testmo/config.tsx   |   2 +-
 config-ui/src/plugins/register/zentao/config.tsx   |   2 +-
 config-ui/src/plugins/utils.ts                     |   2 +
 config-ui/src/routes/pipeline/components/task.tsx  |   3 +
 grafana/dashboards/ArgoCD.json                     | 879 +++++++++++++++++++++
 61 files changed, 3970 insertions(+), 71 deletions(-)

diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
index 9bf603913..f48cdbef2 100644
--- a/.devcontainer/Dockerfile
+++ b/.devcontainer/Dockerfile
@@ -13,11 +13,11 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-FROM mcr.microsoft.com/devcontainers/go:1-1.22-bookworm
+FROM mcr.microsoft.com/devcontainers/go:1-1.23-bookworm
 
 ENV PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib:/usr/local/lib/pkgconfig
 ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
-ENV DEVLAKE_PLUGINS=bamboo,bitbucket,circleci,customize,dora,gitextractor,github,github_graphql,gitlab,jenkins,jira,org,pagerduty,refdiff,slack,sonarqube,trello,webhook
+ENV DEVLAKE_PLUGINS=argocd,bamboo,bitbucket,circleci,customize,dora,gitextractor,github,github_graphql,gitlab,issue_trace,jenkins,jira,org,pagerduty,refdiff,slack,sonarqube,trello,webhook
 
 RUN apt-get update -y
 RUN apt-get install pkg-config python3-dev default-libmysqlclient-dev build-essential libpq-dev cmake -y
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
index d1e59507c..a9e437227 100644
--- a/.devcontainer/devcontainer.json
+++ b/.devcontainer/devcontainer.json
@@ -45,4 +45,4 @@
     }
   },
   "remoteUser": "root"
-}
\ No newline at end of file
+}
diff --git a/backend/plugins/argocd/README.md b/backend/plugins/argocd/README.md
new file mode 100644
index 000000000..a31d64829
--- /dev/null
+++ b/backend/plugins/argocd/README.md
@@ -0,0 +1,17 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+Please see details in the [Apache DevLake website](https://devlake.apache.org/docs/Plugins/argocd)
diff --git a/backend/plugins/argocd/api/blueprint_v200.go b/backend/plugins/argocd/api/blueprint_v200.go
new file mode 100644
index 000000000..77e724d88
--- /dev/null
+++ b/backend/plugins/argocd/api/blueprint_v200.go
@@ -0,0 +1,141 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package api
+
+import (
+	"github.com/apache/incubator-devlake/core/errors"
+	coreModels "github.com/apache/incubator-devlake/core/models"
+	"github.com/apache/incubator-devlake/core/models/domainlayer"
+	"github.com/apache/incubator-devlake/core/models/domainlayer/devops"
+	"github.com/apache/incubator-devlake/core/models/domainlayer/didgen"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/core/utils"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/helpers/srvhelper"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+	"github.com/apache/incubator-devlake/plugins/argocd/tasks"
+)
+
+func MakeDataSourcePipelinePlanV200(
+	subtaskMetas []plugin.SubTaskMeta,
+	connectionId uint64,
+	bpScopes []*coreModels.BlueprintScope,
+) (coreModels.PipelinePlan, []plugin.Scope, errors.Error) {
+	connection, err := dsHelper.ConnSrv.FindByPk(connectionId)
+	if err != nil {
+		return nil, nil, err
+	}
+	scopeDetails, err := dsHelper.ScopeApi.MapScopeDetails(connectionId, bpScopes)
+	if err != nil {
+		// attempt auto-create missing scopes for blueprint (only name known)
+		cfg, _ := CreateDefaultScopeConfig(connectionId)
+		for _, bs := range bpScopes {
+			if _, findErr := dsHelper.ScopeSrv.ModelSrvHelper.FindByPk(connectionId, bs.ScopeId); findErr != nil {
+				app := &models.ArgocdApplication{}
+				app.ConnectionId = connectionId
+				app.Name = bs.ScopeId
+				if cfg != nil {
+					app.ScopeConfigId = cfg.ID
+				}
+				_ = dsHelper.ScopeSrv.ModelSrvHelper.CreateOrUpdate(app)
+			}
+		}
+		scopeDetails, err = dsHelper.ScopeApi.MapScopeDetails(connectionId, bpScopes)
+		if err != nil {
+			return nil, nil, err
+		}
+	}
+
+	plan, err := makeDataSourcePipelinePlanV200(subtaskMetas, scopeDetails, connection)
+	if err != nil {
+		return nil, nil, err
+	}
+	scopes, err := makeScopesV200(scopeDetails, connection)
+	if err != nil {
+		return nil, nil, err
+	}
+
+	return plan, scopes, nil
+}
+
+func makeDataSourcePipelinePlanV200(
+	subtaskMetas []plugin.SubTaskMeta,
+	scopeDetails []*srvhelper.ScopeDetail[models.ArgocdApplication, models.ArgocdScopeConfig],
+	connection *models.ArgocdConnection,
+) (coreModels.PipelinePlan, errors.Error) {
+	plan := make(coreModels.PipelinePlan, len(scopeDetails))
+	for i, scopeDetail := range scopeDetails {
+		application := scopeDetail.Scope
+		scopeConfig := scopeDetail.ScopeConfig
+		if scopeConfig == nil {
+			scopeConfig = &models.ArgocdScopeConfig{}
+		}
+		stage := plan[i]
+		if stage == nil {
+			stage = coreModels.PipelineStage{}
+		}
+		scopeConfigId := application.ScopeConfigId
+		if scopeConfig != nil && scopeConfig.ID != 0 {
+			scopeConfigId = scopeConfig.ID
+		}
+		task, err := api.MakePipelinePlanTask(
+			"argocd",
+			subtaskMetas,
+			scopeConfig.Entities,
+			tasks.ArgocdOptions{
+				ConnectionId:    connection.ID,
+				ApplicationName: application.Name,
+				ScopeConfigId:   scopeConfigId,
+			},
+		)
+		if err != nil {
+			return nil, err
+		}
+		stage = append(stage, task)
+		plan[i] = stage
+	}
+
+	return plan, nil
+}
+
+func makeScopesV200(
+	scopeDetails []*srvhelper.ScopeDetail[models.ArgocdApplication, models.ArgocdScopeConfig],
+	connection *models.ArgocdConnection,
+) ([]plugin.Scope, errors.Error) {
+	scopes := make([]plugin.Scope, 0, len(scopeDetails)*2)
+	idGen := didgen.NewDomainIdGenerator(&models.ArgocdApplication{})
+	for _, scopeDetail := range scopeDetails {
+		application, scopeConfig := scopeDetail.Scope, scopeDetail.ScopeConfig
+		scopes = append(scopes, application)
+		if scopeConfig == nil {
+			continue
+		}
+		entities := scopeConfig.Entities
+		if len(entities) == 0 {
+			entities = plugin.DOMAIN_TYPES
+		}
+		if utils.StringsContains(entities, plugin.DOMAIN_TYPE_CICD) {
+			scopeId := idGen.Generate(connection.ID, application.Name)
+			scopes = append(scopes, &devops.CicdScope{
+				DomainEntity: domainlayer.DomainEntity{Id: scopeId},
+				Name:         application.Name,
+			})
+		}
+	}
+	return scopes, nil
+}
diff --git a/backend/plugins/argocd/api/connection_api.go b/backend/plugins/argocd/api/connection_api.go
new file mode 100644
index 000000000..5ed370656
--- /dev/null
+++ b/backend/plugins/argocd/api/connection_api.go
@@ -0,0 +1,206 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package api
+
+import (
+	"context"
+
+	"net/http"
+	"net/url"
+
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+	"github.com/apache/incubator-devlake/server/api/shared"
+)
+
+type ArgocdTestConnResponse struct {
+	shared.ApiBody
+	Connection *models.ArgocdConn
+}
+
+func testConnection(ctx context.Context, connection models.ArgocdConn) (*ArgocdTestConnResponse, errors.Error) {
+	// validate
+	if vld != nil {
+		if err := vld.Struct(connection); err != nil {
+			return nil, errors.Default.Wrap(err, "error validating target")
+		}
+	}
+	apiClient, err := api.NewApiClientFromConnection(ctx, basicRes, &connection)
+	if err != nil {
+		return nil, err
+	}
+
+	// Test ArgoCD API by listing applications
+	query := url.Values{}
+	res, err := apiClient.Get("applications", query, nil)
+	if err != nil {
+		return nil, err
+	}
+
+	if res.StatusCode == http.StatusUnauthorized {
+		return nil, errors.HttpStatus(http.StatusBadRequest).New("StatusUnauthorized error - check your token")
+	}
+
+	if res.StatusCode == http.StatusForbidden {
+		return nil, errors.BadInput.New("token lacks required permissions")
+	}
+
+	connection = connection.Sanitize()
+	body := ArgocdTestConnResponse{}
+	body.Success = true
+	body.Message = "success"
+	body.Connection = &connection
+
+	return &body, nil
+}
+
+// TestConnection test argocd connection
+// @Summary test argocd connection
+// @Description Test ArgoCD Connection
+// @Tags plugins/argocd
+// @Param body body models.ArgocdConn true "json body"
+// @Success 200  {object} ArgocdTestConnResponse "Success"
+// @Failure 400  {string} errcode.Error "Bad Request"
+// @Failure 500  {string} errcode.Error "Internal Error"
+// @Router /plugins/argocd/test [POST]
+func TestConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	var err errors.Error
+	var connection models.ArgocdConn
+	if err = api.Decode(input.Body, &connection, vld); err != nil {
+		return nil, err
+	}
+	result, err := testConnection(context.TODO(), connection)
+	if err != nil {
+		return nil, plugin.WrapTestConnectionErrResp(basicRes, err)
+	}
+	return &plugin.ApiResourceOutput{Body: result, Status: http.StatusOK}, nil
+}
+
+// TestExistingConnection test argocd connection
+// @Summary test argocd connection
+// @Description Test ArgoCD Connection
+// @Tags plugins/argocd
+// @Param connectionId path int true "connection ID"
+// @Success 200  {object} ArgocdTestConnResponse "Success"
+// @Failure 400  {string} errcode.Error "Bad Request"
+// @Failure 500  {string} errcode.Error "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/test [POST]
+func TestExistingConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	connection, err := dsHelper.ConnApi.GetMergedConnection(input)
+	if err != nil {
+		return nil, errors.Convert(err)
+	}
+	if result, err := testConnection(context.TODO(), connection.ArgocdConn); err != nil {
+		return nil, plugin.WrapTestConnectionErrResp(basicRes, err)
+	} else {
+		return &plugin.ApiResourceOutput{Body: result, Status: http.StatusOK}, nil
+	}
+}
+
+// @Summary create argocd connection
+// @Description Create ArgoCD connection
+// @Tags plugins/argocd
+// @Param body body models.ArgocdConnection true "json body"
+// @Success 200  {object} models.ArgocdConnection
+// @Failure 400  {string} errcode.Error "Bad Request"
+// @Failure 500  {string} errcode.Error "Internal Error"
+// @Router /plugins/argocd/connections [POST]
+func PostConnections(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	out, err := dsHelper.ConnApi.Post(input)
+	if err != nil {
+		return nil, err
+	}
+	connId := out.Body.(*models.ArgocdConnection).ID
+	_, _ = CreateDefaultScopeConfig(connId)
+	return out, nil
+}
+
+// @Summary patch argocd connection
+// @Description Patch ArgoCD connection
+// @Tags plugins/argocd
+// @Param body body models.ArgocdConnection true "json body"
+// @Success 200  {object} models.ArgocdConnection
+// @Failure 400  {string} errcode.Error "Bad Request"
+// @Failure 500  {string} errcode.Error "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId} [PATCH]
+func PatchConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ConnApi.Patch(input)
+}
+
+// @Summary delete an argocd connection
+// @Description Delete an ArgoCD connection
+// @Tags plugins/argocd
+// @Success 200  {object} models.ArgocdConnection
+// @Failure 400  {string} errcode.Error "Bad Request"
+// @Failure 409  {object} srvhelper.DsRefs "References exist to this connection"
+// @Failure 500  {string} errcode.Error "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId} [DELETE]
+func DeleteConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ConnApi.Delete(input)
+}
+
+// @Summary get all argocd connections
+// @Description Get all ArgoCD connections
+// @Tags plugins/argocd
+// @Success 200  {object} []models.ArgocdConnection
+// @Failure 400  {string} errcode.Error "Bad Request"
+// @Failure 500  {string} errcode.Error "Internal Error"
+// @Router /plugins/argocd/connections [GET]
+func ListConnections(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ConnApi.GetAll(input)
+}
+
+// @Summary get argocd connection detail
+// @Description Get ArgoCD connection detail
+// @Tags plugins/argocd
+
+// CreateDefaultScopeConfig ensures a default scope config exists
+func CreateDefaultScopeConfig(connectionId uint64) (*models.ArgocdScopeConfig, errors.Error) {
+	if dsHelper.ScopeConfigSrv == nil {
+		return nil, nil
+	}
+	existing, _ := dsHelper.ScopeConfigSrv.GetAllByConnectionId(connectionId)
+	if len(existing) > 0 {
+		return existing[0], nil
+	}
+	cfg := &models.ArgocdScopeConfig{
+		ScopeConfig:       models.ArgocdScopeConfig{}.ScopeConfig, // zero
+		DeploymentPattern: ".*",
+		ProductionPattern: "(?i)(prod|production)",
+		EnvNamePattern:    "(?i)prod(.*)",
+	}
+	cfg.ConnectionId = connectionId
+	cfg.Name = "default"
+	cfg.Entities = []string{"CICD"}
+	err := dsHelper.ScopeConfigSrv.Create(cfg)
+	if err != nil {
+		return nil, err
+	}
+	return cfg, nil
+}
+
+// @Success 200  {object} models.ArgocdConnection
+// @Failure 400  {string} errcode.Error "Bad Request"
+// @Failure 500  {string} errcode.Error "Internal Error"
+
+// @Router /plugins/argocd/connections/{connectionId} [GET]
+func GetConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ConnApi.GetDetail(input)
+}
diff --git a/backend/plugins/argocd/api/init.go b/backend/plugins/argocd/api/init.go
new file mode 100644
index 000000000..f61e7f9ee
--- /dev/null
+++ b/backend/plugins/argocd/api/init.go
@@ -0,0 +1,51 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package api
+
+import (
+	"github.com/apache/incubator-devlake/core/context"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+	"github.com/go-playground/validator/v10"
+)
+
+var vld *validator.Validate
+var basicRes context.BasicRes
+var dsHelper *api.DsHelper[models.ArgocdConnection, models.ArgocdApplication, models.ArgocdScopeConfig]
+var raProxy *api.DsRemoteApiProxyHelper[models.ArgocdConnection]
+var raScopeList *api.DsRemoteApiScopeListHelper[models.ArgocdConnection, models.ArgocdApplication, ArgocdRemotePagination]
+
+func Init(br context.BasicRes, p plugin.PluginMeta) {
+	vld = validator.New()
+	basicRes = br
+	dsHelper = api.NewDataSourceHelper[
+		models.ArgocdConnection, models.ArgocdApplication, models.ArgocdScopeConfig,
+	](
+		br,
+		p.Name(),
+		[]string{"name"},
+		func(c models.ArgocdConnection) models.ArgocdConnection {
+			return c.Sanitize()
+		},
+		nil,
+		nil,
+	)
+	raProxy = api.NewDsRemoteApiProxyHelper[models.ArgocdConnection](dsHelper.ConnApi.ModelApiHelper)
+	raScopeList = api.NewDsRemoteApiScopeListHelper[models.ArgocdConnection, models.ArgocdApplication, ArgocdRemotePagination](raProxy, listArgocdRemoteScopes)
+}
diff --git a/backend/plugins/argocd/api/remote_api.go b/backend/plugins/argocd/api/remote_api.go
new file mode 100644
index 000000000..96f27fbf3
--- /dev/null
+++ b/backend/plugins/argocd/api/remote_api.go
@@ -0,0 +1,170 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package api
+
+import (
+	"net/url"
+
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	dsmodels "github.com/apache/incubator-devlake/helpers/pluginhelper/api/models"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+)
+
+type ArgocdRemotePagination struct {
+	Page int `json:"page"`
+}
+
+type ArgocdRemoteApplication struct {
+	Name      string `json:"name"`
+	Namespace string `json:"namespace"`
+	Project   string `json:"project"`
+}
+
+func listArgocdRemoteScopes(
+	connection *models.ArgocdConnection,
+	apiClient plugin.ApiClient,
+	groupId string,
+	page ArgocdRemotePagination,
+) (
+	children []dsmodels.DsRemoteApiScopeListEntry[models.ArgocdApplication],
+	nextPage *ArgocdRemotePagination,
+	err errors.Error,
+) {
+
+	if groupId == "" {
+		query := url.Values{}
+		res, err := apiClient.Get("applications", query, nil)
+		if err != nil {
+			return nil, nextPage, err
+		}
+
+		var argocdApps struct {
+			Items []struct {
+				Metadata struct {
+					Name      string `json:"name"`
+					Namespace string `json:"namespace"`
+				} `json:"metadata"`
+				Spec struct {
+					Project string `json:"project"`
+				} `json:"spec"`
+			} `json:"items"`
+		}
+
+		if err = api.UnmarshalResponse(res, &argocdApps); err != nil {
+			return nil, nextPage, err
+		}
+
+		projectMap := make(map[string]bool)
+		for _, item := range argocdApps.Items {
+			projectName := item.Spec.Project
+			if projectName == "" {
+				projectName = "default"
+			}
+			projectMap[projectName] = true
+		}
+
+		// Return projects as groups
+		for projectName := range projectMap {
+			children = append(children, dsmodels.DsRemoteApiScopeListEntry[models.ArgocdApplication]{
+				Type:     api.RAS_ENTRY_TYPE_GROUP,
+				Id:       projectName,
+				Name:     projectName,
+				FullName: projectName,
+			})
+		}
+
+		return children, nextPage, nil
+	}
+
+	query := url.Values{}
+	res, err := apiClient.Get("applications", query, nil)
+	if err != nil {
+		return nil, nextPage, err
+	}
+
+	var argocdApps struct {
+		Items []struct {
+			Metadata struct {
+				Name      string `json:"name"`
+				Namespace string `json:"namespace"`
+			} `json:"metadata"`
+			Spec struct {
+				Project string `json:"project"`
+			} `json:"spec"`
+		} `json:"items"`
+	}
+
+	if err = api.UnmarshalResponse(res, &argocdApps); err != nil {
+		return nil, nextPage, err
+	}
+
+	for _, item := range argocdApps.Items {
+		projectName := item.Spec.Project
+		if projectName == "" {
+			projectName = "default"
+		}
+
+		if projectName == groupId {
+			app := &models.ArgocdApplication{
+				Name:      item.Metadata.Name,
+				Namespace: item.Metadata.Namespace,
+				Project:   item.Spec.Project,
+			}
+			app.ConnectionId = connection.ID
+
+			parentId := groupId
+			children = append(children, dsmodels.DsRemoteApiScopeListEntry[models.ArgocdApplication]{
+				Type:     api.RAS_ENTRY_TYPE_SCOPE,
+				ParentId: &parentId,
+				Id:       item.Metadata.Name,
+				Name:     item.Metadata.Name,
+				FullName: item.Metadata.Name,
+				Data:     app,
+			})
+		}
+	}
+
+	return children, nextPage, nil
+}
+
+// RemoteScopes list all available applications for the given connection
+// @Summary list all available applications for the given connection
+// @Description list all available applications for the given connection
+// @Tags plugins/argocd
+// @Accept application/json
+// @Param connectionId path int false "connection ID"
+// @Param groupId query string false "group ID"
+// @Success 200  {object} dsmodels.DsRemoteApiScopeList[models.ArgocdApplication]
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/remote-scopes [GET]
+func RemoteScopes(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return raScopeList.Get(input)
+}
+
+// @Summary Remote server API proxy
+// @Description Forward API requests to the ArgoCD server
+// @Param connectionId path int true "connection ID"
+// @Param path path string true "path to a API endpoint"
+// @Tags plugins/argocd
+// @Router /plugins/argocd/connections/{connectionId}/proxy/{path} [GET]
+func Proxy(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return raProxy.Proxy(input)
+}
diff --git a/backend/plugins/argocd/api/scope_api.go b/backend/plugins/argocd/api/scope_api.go
new file mode 100644
index 000000000..53d00366b
--- /dev/null
+++ b/backend/plugins/argocd/api/scope_api.go
@@ -0,0 +1,119 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package api
+
+import (
+	"strconv"
+
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/plugin"
+)
+
+// PutScopes create or update argocd applications
+// @Summary create or update argocd applications
+// @Description Create or update ArgoCD application scopes
+// @Tags plugins/argocd
+// @Accept application/json
+// @Param connectionId path int false "connection ID"
+// @Param scope body models.ArgocdApplication true "json"
+// @Success 200  {object} []models.ArgocdApplication
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/scopes [PUT]
+func PutScopes(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	connParam, ok := input.Params["connectionId"]
+	if ok {
+		if cid, err := strconv.ParseUint(connParam, 10, 64); err == nil {
+			cfg, _ := CreateDefaultScopeConfig(cid)
+			if cfg != nil {
+				if data, ok := input.Body["data"].([]interface{}); ok {
+					for _, row := range data {
+						if m, ok := row.(map[string]interface{}); ok {
+							if _, has := m["scopeConfigId"]; !has || m["scopeConfigId"] == 0 {
+								m["scopeConfigId"] = cfg.ID
+							}
+						}
+					}
+				}
+			}
+		}
+	}
+	return dsHelper.ScopeApi.PutMultiple(input)
+}
+
+// UpdateScope patch to argocd application
+// @Summary patch to argocd application
+// @Description Patch ArgoCD application scope
+// @Tags plugins/argocd
+// @Accept application/json
+// @Param connectionId path int false "connection ID"
+// @Param scopeId path string false "application name"
+// @Param scope body models.ArgocdApplication true "json"
+// @Success 200  {object} models.ArgocdApplication
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/scopes/{scopeId} [PATCH]
+func UpdateScope(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ScopeApi.Patch(input)
+}
+
+// GetScopeList get ArgoCD applications
+// @Summary get ArgoCD applications
+// @Description Get ArgoCD applications
+// @Tags plugins/argocd
+// @Param connectionId path int false "connection ID"
+// @Param searchTerm query string false "search term for scope name"
+// @Param blueprints query bool false "also return blueprints using these scopes as part of the payload"
+// @Success 200  {object} []models.ArgocdApplication
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/scopes [GET]
+func GetScopeList(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ScopeApi.GetPage(input)
+}
+
+// GetScope get one ArgoCD application
+// @Summary get one ArgoCD application
+// @Description Get one ArgoCD application
+// @Tags plugins/argocd
+// @Param connectionId path int false "connection ID"
+// @Param scopeId path string false "application name"
+// @Param pageSize query int false "page size, default 50"
+// @Param page query int false "page number, default 1"
+// @Success 200  {object} models.ArgocdApplication
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/scopes/{scopeId} [GET]
+func GetScope(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ScopeApi.GetScopeDetail(input)
+}
+
+// DeleteScope delete plugin data associated with the scope and optionally the scope itself
+// @Summary delete plugin data associated with the scope and optionally the scope itself
+// @Description Delete data associated with ArgoCD application scope
+// @Tags plugins/argocd
+// @Param connectionId path int true "connection ID"
+// @Param scopeId path string true "application name"
+// @Param delete_data_only query bool false "Only delete the scope data, not the scope itself"
+// @Success 200
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/scopes/{scopeId} [DELETE]
+func DeleteScope(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ScopeApi.Delete(input)
+}
diff --git a/backend/plugins/argocd/api/scope_config_api.go b/backend/plugins/argocd/api/scope_config_api.go
new file mode 100644
index 000000000..5b75993bb
--- /dev/null
+++ b/backend/plugins/argocd/api/scope_config_api.go
@@ -0,0 +1,110 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package api
+
+import (
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/plugin"
+)
+
+// CreateScopeConfig create scope config for ArgoCD
+// @Summary create scope config for ArgoCD
+// @Description create scope config for ArgoCD
+// @Tags plugins/argocd
+// @Accept application/json
+// @Param connectionId path int false "connectionId"
+// @Param scopeConfig body models.ArgocdScopeConfig true "scope config"
+// @Success 200  {object} models.ArgocdScopeConfig
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/scope-configs [POST]
+func CreateScopeConfig(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ScopeConfigApi.Post(input)
+}
+
+// UpdateScopeConfig update scope config for ArgoCD
+// @Summary update scope config for ArgoCD
+// @Description update scope config for ArgoCD
+// @Tags plugins/argocd
+// @Accept application/json
+// @Param id path int true "id"
+// @Param connectionId path int false "connectionId"
+// @Param scopeConfig body models.ArgocdScopeConfig true "scope config"
+// @Success 200  {object} models.ArgocdScopeConfig
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/scope-configs/{id} [PATCH]
+func UpdateScopeConfig(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ScopeConfigApi.Patch(input)
+}
+
+// GetScopeConfigList get scope config list for ArgoCD
+// @Summary get scope config list for ArgoCD
+// @Description get scope config list for ArgoCD
+// @Tags plugins/argocd
+// @Param connectionId path int false "connectionId"
+// @Param pageSize query int false "page size, default 50"
+// @Param page query int false "page number, default 1"
+// @Success 200  {object} []models.ArgocdScopeConfig
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/scope-configs [GET]
+func GetScopeConfigList(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ScopeConfigApi.GetAll(input)
+}
+
+// GetScopeConfig get scope config for ArgoCD
+// @Summary get scope config for ArgoCD
+// @Description get scope config for ArgoCD
+// @Tags plugins/argocd
+// @Param id path int true "id"
+// @Param connectionId path int false "connectionId"
+// @Success 200  {object} models.ArgocdScopeConfig
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/scope-configs/{id} [GET]
+func GetScopeConfig(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ScopeConfigApi.GetDetail(input)
+}
+
+// DeleteScopeConfig delete scope config for ArgoCD
+// @Summary delete scope config for ArgoCD
+// @Description delete scope config for ArgoCD
+// @Tags plugins/argocd
+// @Param id path int true "id"
+// @Param connectionId path int false "connectionId"
+// @Success 200
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/connections/{connectionId}/scope-configs/{id} [DELETE]
+func DeleteScopeConfig(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ScopeConfigApi.Delete(input)
+}
+
+// GetProjectsByScopeConfig get projects related to a scope config
+// @Summary get projects related to scope config
+// @Description get projects related to scope config
+// @Tags plugins/argocd
+// @Param scopeConfigId path int true "scopeConfigId"
+// @Success 200
+// @Failure 400  {object} shared.ApiBody "Bad Request"
+// @Failure 500  {object} shared.ApiBody "Internal Error"
+// @Router /plugins/argocd/scope-config/{scopeConfigId}/projects [GET]
+func GetProjectsByScopeConfig(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
+	return dsHelper.ScopeConfigApi.GetProjectsByScopeConfig(input)
+}
diff --git a/backend/plugins/argocd/argocd.go b/backend/plugins/argocd/argocd.go
new file mode 100644
index 000000000..8a51d844a
--- /dev/null
+++ b/backend/plugins/argocd/argocd.go
@@ -0,0 +1,52 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package main
+
+import (
+	"github.com/apache/incubator-devlake/core/runner"
+	"github.com/apache/incubator-devlake/plugins/argocd/impl"
+	"github.com/spf13/cobra"
+)
+
+var PluginEntry impl.ArgoCD //nolint
+
+func main() {
+	cmd := &cobra.Command{Use: "argocd"}
+	connectionId := cmd.Flags().Uint64P("connectionId", "c", 0, "argocd connection id")
+	applicationName := cmd.Flags().StringP("applicationName", "a", "", "argocd application name")
+	timeAfter := cmd.Flags().StringP("timeAfter", "t", "", "collect data that are created after specified time, ie 2006-01-02T15:04:05Z")
+	_ = cmd.MarkFlagRequired("connectionId")
+	_ = cmd.MarkFlagRequired("applicationName")
+
+	envNamePattern := cmd.Flags().String("envNamePattern", "", "environment name pattern")
+	deploymentPattern := cmd.Flags().String("deploymentPattern", "", "deployment pattern")
+	productionPattern := cmd.Flags().String("productionPattern", "(?i)(production|prod)", "production pattern")
+
+	cmd.Run = func(cmd *cobra.Command, args []string) {
+		runner.DirectRun(cmd, args, PluginEntry, map[string]interface{}{
+			"connectionId":    *connectionId,
+			"applicationName": *applicationName,
+			"scopeConfig": map[string]interface{}{
+				"envNamePattern":    *envNamePattern,
+				"deploymentPattern": *deploymentPattern,
+				"productionPattern": *productionPattern,
+			},
+		}, *timeAfter)
+	}
+	runner.RunCmd(cmd)
+}
diff --git a/backend/plugins/argocd/impl/impl.go b/backend/plugins/argocd/impl/impl.go
new file mode 100644
index 000000000..c55958ea1
--- /dev/null
+++ b/backend/plugins/argocd/impl/impl.go
@@ -0,0 +1,156 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package impl
+
+import (
+	"github.com/apache/incubator-devlake/core/context"
+	"github.com/apache/incubator-devlake/core/dal"
+	"github.com/apache/incubator-devlake/core/errors"
+	coreModels "github.com/apache/incubator-devlake/core/models"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/plugins/argocd/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+	"github.com/apache/incubator-devlake/plugins/argocd/models/migrationscripts"
+	"github.com/apache/incubator-devlake/plugins/argocd/tasks"
+)
+
+var _ interface {
+	plugin.PluginMeta
+	plugin.PluginInit
+	plugin.PluginTask
+	plugin.PluginApi
+	plugin.PluginModel
+	plugin.PluginMigration
+	plugin.PluginSource
+	plugin.DataSourcePluginBlueprintV200
+	plugin.CloseablePluginTask
+} = (*ArgoCD)(nil)
+
+type ArgoCD struct{}
+
+func (p ArgoCD) Connection() dal.Tabler {
+	return &models.ArgocdConnection{}
+}
+
+func (p ArgoCD) Scope() plugin.ToolLayerScope {
+	return &models.ArgocdApplication{}
+}
+
+func (p ArgoCD) ScopeConfig() dal.Tabler {
+	return &models.ArgocdScopeConfig{}
+}
+
+func (p ArgoCD) Description() string {
+	return "collect data from ArgoCD"
+}
+
+func (p ArgoCD) Name() string {
+	return "argocd"
+}
+
+func (p ArgoCD) RootPkgPath() string {
+	return "github.com/apache/incubator-devlake/plugins/argocd"
+}
+
+func (p ArgoCD) Init(basicRes context.BasicRes) errors.Error {
+	api.Init(basicRes, p)
+	return nil
+}
+
+func (p ArgoCD) SubTaskMetas() []plugin.SubTaskMeta {
+	return tasks.CollectDataTaskMetas()
+}
+
+func (p ArgoCD) PrepareTaskData(taskCtx plugin.TaskContext, options map[string]interface{}) (interface{}, errors.Error) {
+	return tasks.PrepareTaskData(taskCtx, options)
+}
+
+func (p ArgoCD) GetTablesInfo() []dal.Tabler {
+	return []dal.Tabler{
+		&models.ArgocdConnection{},
+		&models.ArgocdApplication{},
+		&models.ArgocdSyncOperation{},
+		&models.ArgocdScopeConfig{},
+	}
+}
+
+func (p ArgoCD) MigrationScripts() []plugin.MigrationScript {
+	return migrationscripts.All()
+}
+
+func (p ArgoCD) MakeDataSourcePipelinePlanV200(
+	connectionId uint64,
+	scopes []*coreModels.BlueprintScope,
+) (coreModels.PipelinePlan, []plugin.Scope, errors.Error) {
+	return api.MakeDataSourcePipelinePlanV200(p.SubTaskMetas(), connectionId, scopes)
+}
+
+func (p ArgoCD) Close(taskCtx plugin.TaskContext) errors.Error {
+	data, ok := taskCtx.GetData().(*tasks.ArgocdTaskData)
+	if !ok {
+		return errors.Default.New("GetData failed when try to close")
+	}
+	data.ApiClient.Release()
+	return nil
+}
+
+func (p ArgoCD) ApiResources() map[string]map[string]plugin.ApiResourceHandler {
+	return map[string]map[string]plugin.ApiResourceHandler{
+		"test": {
+			"POST": api.TestConnection,
+		},
+		"connections": {
+			"POST": api.PostConnections,
+			"GET":  api.ListConnections,
+		},
+		"connections/:connectionId": {
+			"GET":    api.GetConnection,
+			"PATCH":  api.PatchConnection,
+			"DELETE": api.DeleteConnection,
+		},
+		"connections/:connectionId/test": {
+			"POST": api.TestExistingConnection,
+		},
+		"connections/:connectionId/remote-scopes": {
+			"GET": api.RemoteScopes,
+		},
+		"connections/:connectionId/scopes": {
+			"GET": api.GetScopeList,
+			"PUT": api.PutScopes,
+		},
+		"connections/:connectionId/scopes/:scopeId": {
+			"GET":    api.GetScope,
+			"PATCH":  api.UpdateScope,
+			"DELETE": api.DeleteScope,
+		},
+		"connections/:connectionId/scope-configs": {
+			"POST": api.CreateScopeConfig,
+			"GET":  api.GetScopeConfigList,
+		},
+		"connections/:connectionId/scope-configs/:scopeConfigId": {
+			"PATCH":  api.UpdateScopeConfig,
+			"GET":    api.GetScopeConfig,
+			"DELETE": api.DeleteScopeConfig,
+		},
+		"scope-config/:scopeConfigId/projects": {
+			"GET": api.GetProjectsByScopeConfig,
+		},
+	}
+}
+
+var PluginEntry ArgoCD //nolint
diff --git a/backend/plugins/argocd/models/application.go b/backend/plugins/argocd/models/application.go
new file mode 100644
index 000000000..465cf0266
--- /dev/null
+++ b/backend/plugins/argocd/models/application.go
@@ -0,0 +1,71 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package models
+
+import (
+	"time"
+
+	"github.com/apache/incubator-devlake/core/models/common"
+	"github.com/apache/incubator-devlake/core/plugin"
+)
+
+var _ plugin.ToolLayerScope = (*ArgocdApplication)(nil)
+
+type ArgocdApplication struct {
+	common.Scope   `mapstructure:",squash"`
+	Name           string     `gorm:"type:varchar(255);primaryKey" json:"name" mapstructure:"name" validate:"required"`
+	Namespace      string     `gorm:"type:varchar(255)" json:"namespace" mapstructure:"namespace"`
+	Project        string     `gorm:"type:varchar(255)" json:"project" mapstructure:"project"`
+	RepoURL        string     `gorm:"type:varchar(500)" json:"repoUrl" mapstructure:"repoUrl"`
+	Path           string     `gorm:"type:varchar(255)" json:"path" mapstructure:"path"`
+	TargetRevision string     `gorm:"type:varchar(255)" json:"targetRevision" mapstructure:"targetRevision"`
+	DestServer     string     `gorm:"type:varchar(255)" json:"destServer" mapstructure:"destServer"`
+	DestNamespace  string     `gorm:"type:varchar(255)" json:"destNamespace" mapstructure:"destNamespace"`
+	SyncStatus     string     `gorm:"type:varchar(100)" json:"syncStatus" mapstructure:"syncStatus"`     // Synced, OutOfSync, Unknown
+	HealthStatus   string     `gorm:"type:varchar(100)" json:"healthStatus" mapstructure:"healthStatus"` // Healthy, Progressing, Degraded, Suspended, Missing, Unknown
+	CreatedDate    *time.Time `json:"createdDate,omitempty" mapstructure:"createdDate,omitempty"`
+	common.NoPKModel
+}
+
+func (ArgocdApplication) TableName() string {
+	return "_tool_argocd_applications"
+}
+
+func (a ArgocdApplication) ScopeId() string {
+	return a.Name
+}
+
+func (a ArgocdApplication) ScopeName() string {
+	return a.Name
+}
+
+func (a ArgocdApplication) ScopeFullName() string {
+	return a.Name
+}
+
+func (a ArgocdApplication) ScopeParams() interface{} {
+	return &ArgocdApiParams{
+		ConnectionId: a.ConnectionId,
+		Name:         a.Name,
+	}
+}
+
+type ArgocdApiParams struct {
+	ConnectionId uint64
+	Name         string
+}
diff --git a/backend/plugins/argocd/models/application_test.go b/backend/plugins/argocd/models/application_test.go
new file mode 100644
index 000000000..1bd8343f5
--- /dev/null
+++ b/backend/plugins/argocd/models/application_test.go
@@ -0,0 +1,43 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package models
+
+import (
+	"testing"
+
+	"github.com/apache/incubator-devlake/core/models/common"
+	"github.com/stretchr/testify/assert"
+)
+
+func TestArgocdApplicationScopeHelpers(t *testing.T) {
+	app := &ArgocdApplication{
+		Scope: common.Scope{
+			ConnectionId:  11,
+			ScopeConfigId: 22,
+		},
+		Name: "demo-app",
+	}
+
+	assert.Equal(t, "demo-app", app.ScopeId())
+	assert.Equal(t, "demo-app", app.ScopeName())
+	assert.Equal(t, "demo-app", app.ScopeFullName())
+
+	params := app.ScopeParams().(*ArgocdApiParams)
+	assert.Equal(t, uint64(11), params.ConnectionId)
+	assert.Equal(t, "demo-app", params.Name)
+}
diff --git a/backend/plugins/argocd/models/connection.go b/backend/plugins/argocd/models/connection.go
new file mode 100644
index 000000000..a2c011127
--- /dev/null
+++ b/backend/plugins/argocd/models/connection.go
@@ -0,0 +1,47 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package models
+
+import (
+	"github.com/apache/incubator-devlake/core/utils"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+)
+
+type ArgocdConn struct {
+	api.RestConnection `mapstructure:",squash"`
+	api.AccessToken    `mapstructure:",squash"`
+}
+
+func (conn *ArgocdConn) Sanitize() ArgocdConn {
+	conn.Token = utils.SanitizeString(conn.Token)
+	return *conn
+}
+
+type ArgocdConnection struct {
+	api.BaseConnection `mapstructure:",squash"`
+	ArgocdConn         `mapstructure:",squash"`
+}
+
+func (connection ArgocdConnection) Sanitize() ArgocdConnection {
+	connection.ArgocdConn = connection.ArgocdConn.Sanitize()
+	return connection
+}
+
+func (ArgocdConnection) TableName() string {
+	return "_tool_argocd_connections"
+}
diff --git a/backend/plugins/argocd/models/connection_test.go b/backend/plugins/argocd/models/connection_test.go
new file mode 100644
index 000000000..e7130afc5
--- /dev/null
+++ b/backend/plugins/argocd/models/connection_test.go
@@ -0,0 +1,41 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package models
+
+import (
+	"testing"
+
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/stretchr/testify/assert"
+)
+
+func TestArgocdConnection_Sanitize(t *testing.T) {
+	conn := ArgocdConnection{
+		ArgocdConn: ArgocdConn{
+			AccessToken: api.AccessToken{
+				Token: "abcdef",
+			},
+		},
+	}
+
+	sanitized := conn.Sanitize()
+
+	assert.Equal(t, "ab**ef", sanitized.Token)
+	// original connection should remain unchanged
+	assert.Equal(t, "abcdef", conn.Token)
+}
diff --git a/backend/plugins/argocd/models/migrationscripts/20250101_add_init_tables.go b/backend/plugins/argocd/models/migrationscripts/20250101_add_init_tables.go
new file mode 100644
index 000000000..00e334c5a
--- /dev/null
+++ b/backend/plugins/argocd/models/migrationscripts/20250101_add_init_tables.go
@@ -0,0 +1,48 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package migrationscripts
+
+import (
+	"github.com/apache/incubator-devlake/core/context"
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/migrationhelper"
+	"github.com/apache/incubator-devlake/plugins/argocd/models/migrationscripts/archived"
+)
+
+type addInitTables struct{}
+
+func (script *addInitTables) Up(basicRes context.BasicRes) errors.Error {
+	return migrationhelper.AutoMigrateTables(
+		basicRes,
+		&archived.ArgocdConnection{},
+		&archived.ArgocdApplication{},
+		&archived.ArgocdSyncOperation{},
+		&archived.ArgocdScopeConfig{},
+	)
+}
+
+func (script *addInitTables) Version() uint64 {
+	return 20250101000001
+}
+
+func (script *addInitTables) Name() string {
+	return "add init tables for argocd plugin"
+}
+
+var _ plugin.MigrationScript = (*addInitTables)(nil)
diff --git a/backend/plugins/argocd/models/migrationscripts/archived/models.go b/backend/plugins/argocd/models/migrationscripts/archived/models.go
new file mode 100644
index 000000000..ebaaa099c
--- /dev/null
+++ b/backend/plugins/argocd/models/migrationscripts/archived/models.go
@@ -0,0 +1,91 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package archived
+
+import (
+	"time"
+
+	"github.com/apache/incubator-devlake/core/models/migrationscripts/archived"
+)
+
+type ArgocdConnection struct {
+	Name                    string `gorm:"type:varchar(100);uniqueIndex" json:"name"`
+	archived.RestConnection `mapstructure:",squash"`
+	archived.AccessToken    `mapstructure:",squash"`
+	archived.Model
+}
+
+func (ArgocdConnection) TableName() string {
+	return "_tool_argocd_connections"
+}
+
+type ArgocdApplication struct {
+	ConnectionId   uint64 `gorm:"primaryKey"`
+	Name           string `gorm:"primaryKey;type:varchar(255)"`
+	Namespace      string `gorm:"type:varchar(255)"`
+	Project        string `gorm:"type:varchar(255)"`
+	RepoURL        string `gorm:"type:varchar(500)"`
+	Path           string `gorm:"type:varchar(255)"`
+	TargetRevision string `gorm:"type:varchar(255)"`
+	DestServer     string `gorm:"type:varchar(255)"`
+	DestNamespace  string `gorm:"type:varchar(255)"`
+	SyncStatus     string `gorm:"type:varchar(100)"`
+	HealthStatus   string `gorm:"type:varchar(100)"`
+	CreatedDate    *time.Time
+	ScopeConfigId  uint64
+	archived.NoPKModel
+}
+
+func (ArgocdApplication) TableName() string {
+	return "_tool_argocd_applications"
+}
+
+type ArgocdSyncOperation struct {
+	ConnectionId    uint64 `gorm:"primaryKey"`
+	ApplicationName string `gorm:"primaryKey;type:varchar(255)"`
+	DeploymentId    int64  `gorm:"primaryKey"`
+	Revision        string `gorm:"type:varchar(255)"`
+	Kind            string `gorm:"type:varchar(100)"`
+	StartedAt       *time.Time
+	FinishedAt      *time.Time
+	Phase           string `gorm:"type:varchar(100)"`
+	Message         string `gorm:"type:text"`
+	InitiatedBy     string `gorm:"type:varchar(255)"`
+	SyncStatus      string `gorm:"type:varchar(100)"`
+	HealthStatus    string `gorm:"type:varchar(100)"`
+	ResourcesCount  int
+	archived.NoPKModel
+}
+
+func (ArgocdSyncOperation) TableName() string {
+	return "_tool_argocd_sync_operations"
+}
+
+type ArgocdScopeConfig struct {
+	archived.ScopeConfig `mapstructure:",squash" json:",inline" gorm:"embedded"`
+	ConnectionId         uint64   `gorm:"index"`
+	Name                 string   `gorm:"type:varchar(255);index"`
+	Entities             []string `gorm:"type:json;serializer:json"`
+	DeploymentPattern    string   `gorm:"type:varchar(255)"`
+	ProductionPattern    string   `gorm:"type:varchar(255)"`
+	EnvNamePattern       string   `gorm:"type:varchar(255)"`
+}
+
+func (ArgocdScopeConfig) TableName() string {
+	return "_tool_argocd_scope_configs"
+}
diff --git a/backend/plugins/argocd/models/migrationscripts/register.go b/backend/plugins/argocd/models/migrationscripts/register.go
new file mode 100644
index 000000000..b223622cc
--- /dev/null
+++ b/backend/plugins/argocd/models/migrationscripts/register.go
@@ -0,0 +1,28 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package migrationscripts
+
+import (
+	"github.com/apache/incubator-devlake/core/plugin"
+)
+
+func All() []plugin.MigrationScript {
+	return []plugin.MigrationScript{
+		new(addInitTables),
+	}
+}
diff --git a/backend/plugins/argocd/models/scope_config.go b/backend/plugins/argocd/models/scope_config.go
new file mode 100644
index 000000000..5d2042029
--- /dev/null
+++ b/backend/plugins/argocd/models/scope_config.go
@@ -0,0 +1,33 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package models
+
+import (
+	"github.com/apache/incubator-devlake/core/models/common"
+)
+
+type ArgocdScopeConfig struct {
+	common.ScopeConfig `mapstructure:",squash" json:",inline" gorm:"embedded"`
+	DeploymentPattern  string `gorm:"type:varchar(255)" mapstructure:"deploymentPattern" json:"deploymentPattern"`
+	ProductionPattern  string `gorm:"type:varchar(255)" mapstructure:"productionPattern" json:"productionPattern"`
+	EnvNamePattern     string `gorm:"type:varchar(255)" mapstructure:"envNamePattern" json:"envNamePattern"`
+}
+
+func (ArgocdScopeConfig) TableName() string {
+	return "_tool_argocd_scope_configs"
+}
diff --git a/backend/plugins/argocd/models/sync_operation.go b/backend/plugins/argocd/models/sync_operation.go
new file mode 100644
index 000000000..3f2f2c833
--- /dev/null
+++ b/backend/plugins/argocd/models/sync_operation.go
@@ -0,0 +1,45 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package models
+
+import (
+	"time"
+
+	"github.com/apache/incubator-devlake/core/models/common"
+)
+
+type ArgocdSyncOperation struct {
+	ConnectionId    uint64 `gorm:"primaryKey"`
+	ApplicationName string `gorm:"primaryKey;type:varchar(255)"`
+	DeploymentId    int64  `gorm:"primaryKey"`        // History ID from ArgoCD
+	Revision        string `gorm:"type:varchar(255)"` // Git SHA
+	Kind            string `gorm:"type:varchar(100)"` // Kubernetes resource kind: Deployment, ReplicaSet, Rollout, StatefulSet, DaemonSet, etc.
+	StartedAt       *time.Time
+	FinishedAt      *time.Time
+	Phase           string `gorm:"type:varchar(100)"` // Succeeded, Failed, Error, Running, Terminating
+	Message         string `gorm:"type:text"`
+	InitiatedBy     string `gorm:"type:varchar(255)"` // Username or automated
+	SyncStatus      string `gorm:"type:varchar(100)"` // Synced, OutOfSync
+	HealthStatus    string `gorm:"type:varchar(100)"` // Healthy, Degraded, etc.
+	ResourcesCount  int
+	common.NoPKModel
+}
+
+func (ArgocdSyncOperation) TableName() string {
+	return "_tool_argocd_sync_operations"
+}
diff --git a/backend/plugins/argocd/tasks/api_client.go b/backend/plugins/argocd/tasks/api_client.go
new file mode 100644
index 000000000..8ddcd083b
--- /dev/null
+++ b/backend/plugins/argocd/tasks/api_client.go
@@ -0,0 +1,45 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+)
+
+func NewArgocdApiClient(taskCtx plugin.TaskContext, connection *models.ArgocdConnection) (*api.ApiAsyncClient, errors.Error) {
+	apiClient, err := api.NewApiClientFromConnection(
+		taskCtx.GetContext(),
+		taskCtx,
+		connection,
+	)
+	if err != nil {
+		return nil, err
+	}
+
+	apiClient.SetData("Token", connection.Token)
+
+	// use standard creator to ensure scheduler initialized
+	asyncClient, err2 := api.CreateAsyncApiClient(taskCtx, apiClient, nil)
+	if err2 != nil {
+		return nil, err2
+	}
+	return asyncClient, nil
+}
diff --git a/backend/plugins/argocd/tasks/application_collector.go b/backend/plugins/argocd/tasks/application_collector.go
new file mode 100644
index 000000000..67ffabfe1
--- /dev/null
+++ b/backend/plugins/argocd/tasks/application_collector.go
@@ -0,0 +1,76 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"encoding/json"
+	"net/http"
+	"net/url"
+
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+)
+
+const RAW_APPLICATION_TABLE = "argocd_api_applications"
+
+var _ plugin.SubTaskEntryPoint = CollectApplications
+
+var CollectApplicationsMeta = plugin.SubTaskMeta{
+	Name:             "collectApplications",
+	EntryPoint:       CollectApplications,
+	EnabledByDefault: true,
+	Description:      "Collect applications from ArgoCD API",
+}
+
+func CollectApplications(taskCtx plugin.SubTaskContext) errors.Error {
+	data := taskCtx.GetData().(*ArgocdTaskData)
+
+	collector, err := api.NewApiCollector(api.ApiCollectorArgs{
+		RawDataSubTaskArgs: api.RawDataSubTaskArgs{
+			Ctx:   taskCtx,
+			Table: RAW_APPLICATION_TABLE,
+			Params: models.ArgocdApiParams{
+				ConnectionId: data.Options.ConnectionId,
+				Name:         data.Options.ApplicationName,
+			},
+		},
+		ApiClient:   data.ApiClient,
+		UrlTemplate: "/applications/{{.Params.Name}}",
+		Query: func(reqData *api.RequestData) (url.Values, errors.Error) {
+			query := url.Values{}
+			query.Set("refresh", "false")
+			return query, nil
+		},
+		ResponseParser: func(res *http.Response) ([]json.RawMessage, errors.Error) {
+			var application json.RawMessage
+			err := api.UnmarshalResponse(res, &application)
+			if err != nil {
+				return nil, err
+			}
+			return []json.RawMessage{application}, nil
+		},
+	})
+
+	if err != nil {
+		return err
+	}
+
+	return collector.Execute()
+}
diff --git a/backend/plugins/argocd/tasks/application_extractor.go b/backend/plugins/argocd/tasks/application_extractor.go
new file mode 100644
index 000000000..54a01392d
--- /dev/null
+++ b/backend/plugins/argocd/tasks/application_extractor.go
@@ -0,0 +1,115 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"encoding/json"
+	"time"
+
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+)
+
+var _ plugin.SubTaskEntryPoint = ExtractApplications
+
+var ExtractApplicationsMeta = plugin.SubTaskMeta{
+	Name:             "extractApplications",
+	EntryPoint:       ExtractApplications,
+	EnabledByDefault: true,
+	Description:      "Extract applications from raw data",
+	DependencyTables: []string{RAW_APPLICATION_TABLE},
+	ProductTables:    []string{models.ArgocdApplication{}.TableName()},
+}
+
+type ArgocdApiApplication struct {
+	Metadata struct {
+		Name              string    `json:"name"`
+		Namespace         string    `json:"namespace"`
+		CreationTimestamp time.Time `json:"creationTimestamp"`
+	} `json:"metadata"`
+	Spec struct {
+		Project string `json:"project"`
+		Source  struct {
+			RepoURL        string `json:"repoURL"`
+			Path           string `json:"path"`
+			TargetRevision string `json:"targetRevision"`
+		} `json:"source"`
+		Destination struct {
+			Server    string `json:"server"`
+			Namespace string `json:"namespace"`
+		} `json:"destination"`
+	} `json:"spec"`
+	Status struct {
+		Sync struct {
+			Status string `json:"status"` // Synced, OutOfSync, Unknown
+		} `json:"sync"`
+		Health struct {
+			Status string `json:"status"` // Healthy, Progressing, Degraded, etc.
+		} `json:"health"`
+	} `json:"status"`
+}
+
+func ExtractApplications(taskCtx plugin.SubTaskContext) errors.Error {
+	data := taskCtx.GetData().(*ArgocdTaskData)
+
+	extractor, err := api.NewApiExtractor(api.ApiExtractorArgs{
+		RawDataSubTaskArgs: api.RawDataSubTaskArgs{
+			Ctx:   taskCtx,
+			Table: RAW_APPLICATION_TABLE,
+			Params: models.ArgocdApiParams{
+				ConnectionId: data.Options.ConnectionId,
+				Name:         data.Options.ApplicationName,
+			},
+		},
+		Extract: func(row *api.RawData) ([]interface{}, errors.Error) {
+			var apiApp ArgocdApiApplication
+			err := json.Unmarshal(row.Data, &apiApp)
+			if err != nil {
+				return nil, errors.Default.Wrap(err, "error unmarshaling application")
+			}
+
+			application := &models.ArgocdApplication{
+				Name:           apiApp.Metadata.Name,
+				Namespace:      apiApp.Metadata.Namespace,
+				Project:        apiApp.Spec.Project,
+				RepoURL:        apiApp.Spec.Source.RepoURL,
+				Path:           apiApp.Spec.Source.Path,
+				TargetRevision: apiApp.Spec.Source.TargetRevision,
+				DestServer:     apiApp.Spec.Destination.Server,
+				DestNamespace:  apiApp.Spec.Destination.Namespace,
+				SyncStatus:     apiApp.Status.Sync.Status,
+				HealthStatus:   apiApp.Status.Health.Status,
+				CreatedDate:    &apiApp.Metadata.CreationTimestamp,
+			}
+			application.ConnectionId = data.Options.ConnectionId
+			if data.Options.ScopeConfig != nil {
+				application.ScopeConfigId = data.Options.ScopeConfig.ID
+			}
+
+			return []interface{}{application}, nil
+		},
+	})
+
+	if err != nil {
+		return err
+	}
+
+	return extractor.Execute()
+}
diff --git a/backend/plugins/argocd/tasks/register.go b/backend/plugins/argocd/tasks/register.go
new file mode 100644
index 000000000..56478cd1f
--- /dev/null
+++ b/backend/plugins/argocd/tasks/register.go
@@ -0,0 +1,97 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"github.com/apache/incubator-devlake/core/dal"
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/models/domainlayer/devops"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+)
+
+func CollectDataTaskMetas() []plugin.SubTaskMeta {
+	return []plugin.SubTaskMeta{
+		CollectApplicationsMeta,
+		ExtractApplicationsMeta,
+		CollectSyncOperationsMeta,
+		ExtractSyncOperationsMeta,
+		ConvertSyncOperationsMeta,
+	}
+}
+
+func PrepareTaskData(taskCtx plugin.TaskContext, options map[string]interface{}) (interface{}, errors.Error) {
+	op, err := DecodeAndValidateTaskOptions(options)
+	if err != nil {
+		return nil, err
+	}
+
+	connectionHelper := api.NewConnectionHelper(
+		taskCtx,
+		nil,
+		"argocd",
+	)
+
+	connection := &models.ArgocdConnection{}
+	err = connectionHelper.FirstById(connection, op.ConnectionId)
+	if err != nil {
+		return nil, err
+	}
+
+	apiClient, err := NewArgocdApiClient(taskCtx, connection)
+	if err != nil {
+		return nil, err
+	}
+
+	if op.ScopeConfig == nil {
+		op.ScopeConfig = &models.ArgocdScopeConfig{
+			EnvNamePattern: "(?i)prod(.*)",
+		}
+	}
+	if op.ScopeConfigId != 0 {
+		scopeConfig := &models.ArgocdScopeConfig{}
+		if err := taskCtx.GetDal().First(scopeConfig, dal.Where("id = ?", op.ScopeConfigId)); err != nil {
+			return nil, errors.BadInput.Wrap(err, "fail to load scopeConfig")
+		}
+		op.ScopeConfig = scopeConfig
+		op.ScopeConfigId = scopeConfig.ID
+	} else if op.ScopeConfig != nil && op.ScopeConfig.ID != 0 {
+		op.ScopeConfigId = op.ScopeConfig.ID
+	}
+	if op.ScopeConfig.EnvNamePattern == "" {
+		op.ScopeConfig.EnvNamePattern = "(?i)prod(.*)"
+	}
+
+	regexEnricher := api.NewRegexEnricher()
+	if err := regexEnricher.TryAdd(devops.ENV_NAME_PATTERN, op.ScopeConfig.EnvNamePattern); err != nil {
+		return nil, errors.BadInput.Wrap(err, "invalid envNamePattern")
+	}
+	if err := regexEnricher.TryAdd(devops.DEPLOYMENT, op.ScopeConfig.DeploymentPattern); err != nil {
+		return nil, errors.BadInput.Wrap(err, "invalid deploymentPattern")
+	}
+	if err := regexEnricher.TryAdd(devops.PRODUCTION, op.ScopeConfig.ProductionPattern); err != nil {
+		return nil, errors.BadInput.Wrap(err, "invalid productionPattern")
+	}
+
+	return &ArgocdTaskData{
+		Options:       op,
+		ApiClient:     apiClient,
+		RegexEnricher: regexEnricher,
+	}, nil
+}
diff --git a/backend/plugins/argocd/tasks/sync_operation_collector.go b/backend/plugins/argocd/tasks/sync_operation_collector.go
new file mode 100644
index 000000000..19d94a98d
--- /dev/null
+++ b/backend/plugins/argocd/tasks/sync_operation_collector.go
@@ -0,0 +1,107 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"bytes"
+	"encoding/json"
+	"net/http"
+	"net/url"
+
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+)
+
+const RAW_SYNC_OPERATION_TABLE = "argocd_api_sync_operations"
+
+var _ plugin.SubTaskEntryPoint = CollectSyncOperations
+
+var CollectSyncOperationsMeta = plugin.SubTaskMeta{
+	Name:             "collectSyncOperations",
+	EntryPoint:       CollectSyncOperations,
+	EnabledByDefault: true,
+	Description:      "Collect sync operations (deployment history) from ArgoCD API",
+	DependencyTables: []string{models.ArgocdApplication{}.TableName()},
+}
+
+func CollectSyncOperations(taskCtx plugin.SubTaskContext) errors.Error {
+	data := taskCtx.GetData().(*ArgocdTaskData)
+
+	collector, err := api.NewStatefulApiCollector(api.RawDataSubTaskArgs{
+		Ctx:   taskCtx,
+		Table: RAW_SYNC_OPERATION_TABLE,
+		Params: models.ArgocdApiParams{
+			ConnectionId: data.Options.ConnectionId,
+			Name:         data.Options.ApplicationName,
+		},
+	})
+
+	if err != nil {
+		return err
+	}
+
+	err = collector.InitCollector(api.ApiCollectorArgs{
+		ApiClient:   data.ApiClient,
+		UrlTemplate: "/applications/{{.Params.Name}}",
+		Query: func(reqData *api.RequestData) (url.Values, errors.Error) {
+			query := url.Values{}
+			query.Set("refresh", "false")
+			return query, nil
+		},
+		ResponseParser: func(res *http.Response) ([]json.RawMessage, errors.Error) {
+			var appResponse struct {
+				Status struct {
+					History        []json.RawMessage `json:"history"`
+					OperationState json.RawMessage   `json:"operationState"`
+				} `json:"status"`
+			}
+
+			err := api.UnmarshalResponse(res, &appResponse)
+			if err != nil {
+				return nil, err
+			}
+
+			return sanitizeOperationEntries(appResponse.Status.OperationState, appResponse.Status.History), nil
+		},
+	})
+
+	if err != nil {
+		return err
+	}
+
+	return collector.Execute()
+}
+
+func sanitizeOperationEntries(operationState json.RawMessage, history []json.RawMessage) []json.RawMessage {
+	results := make([]json.RawMessage, 0, len(history)+1)
+
+	if op := bytes.TrimSpace(operationState); len(op) > 0 && !bytes.Equal(op, []byte("null")) {
+		results = append(results, operationState)
+	}
+
+	for _, entry := range history {
+		if h := bytes.TrimSpace(entry); len(h) == 0 || bytes.Equal(h, []byte("null")) {
+			continue
+		}
+		results = append(results, entry)
+	}
+
+	return results
+}
diff --git a/backend/plugins/argocd/tasks/sync_operation_collector_test.go b/backend/plugins/argocd/tasks/sync_operation_collector_test.go
new file mode 100644
index 000000000..9737e880e
--- /dev/null
+++ b/backend/plugins/argocd/tasks/sync_operation_collector_test.go
@@ -0,0 +1,68 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"encoding/json"
+	"testing"
+
+	"github.com/stretchr/testify/assert"
+)
+
+func TestSanitizeOperationEntries_SkipsNulls(t *testing.T) {
+	opState := json.RawMessage("null")
+	history := []json.RawMessage{
+		json.RawMessage("null"),
+		json.RawMessage(`{"id": 1}`),
+		json.RawMessage("  "),
+	}
+
+	result := sanitizeOperationEntries(opState, history)
+
+	if assert.Len(t, result, 1) {
+		assert.JSONEq(t, `{"id": 1}`, string(result[0]))
+	}
+}
+
+func TestSanitizeOperationEntries_PreservesOperationState(t *testing.T) {
+	opState := json.RawMessage(`{"phase": "Running"}`)
+	history := []json.RawMessage{
+		json.RawMessage(`{"id": 2}`),
+	}
+
+	result := sanitizeOperationEntries(opState, history)
+
+	if assert.Len(t, result, 2) {
+		assert.JSONEq(t, `{"phase": "Running"}`, string(result[0]))
+		assert.JSONEq(t, `{"id": 2}`, string(result[1]))
+	}
+}
+
+func TestSanitizeOperationEntries_TrimsWhitespace(t *testing.T) {
+	opState := json.RawMessage("   ")
+	history := []json.RawMessage{
+		json.RawMessage("  "),
+		json.RawMessage(` { "id":3 } `),
+	}
+
+	result := sanitizeOperationEntries(opState, history)
+
+	if assert.Len(t, result, 1) {
+		assert.JSONEq(t, `{ "id":3 }`, string(result[0]))
+	}
+}
diff --git a/backend/plugins/argocd/tasks/sync_operation_convertor.go b/backend/plugins/argocd/tasks/sync_operation_convertor.go
new file mode 100644
index 000000000..fc748ae55
--- /dev/null
+++ b/backend/plugins/argocd/tasks/sync_operation_convertor.go
@@ -0,0 +1,268 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"fmt"
+	"reflect"
+	"regexp"
+	"time"
+
+	"github.com/apache/incubator-devlake/core/dal"
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/models/domainlayer"
+	"github.com/apache/incubator-devlake/core/models/domainlayer/devops"
+	"github.com/apache/incubator-devlake/core/models/domainlayer/didgen"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+)
+
+var _ plugin.SubTaskEntryPoint = ConvertSyncOperations
+
+var ConvertSyncOperationsMeta = plugin.SubTaskMeta{
+	Name:             "convertSyncOperations",
+	EntryPoint:       ConvertSyncOperations,
+	EnabledByDefault: true,
+	Description:      "Convert sync operations to domain layer deployments",
+	DependencyTables: []string{models.ArgocdSyncOperation{}.TableName()},
+	ProductTables:    []string{"cicd_deployments", "cicd_deployment_commits"},
+}
+
+func ConvertSyncOperations(taskCtx plugin.SubTaskContext) errors.Error {
+	data := taskCtx.GetData().(*ArgocdTaskData)
+	db := taskCtx.GetDal()
+
+	var application *models.ArgocdApplication
+	app := &models.ArgocdApplication{}
+	if err := db.First(
+		app,
+		dal.Where("connection_id = ? AND name = ?", data.Options.ConnectionId, data.Options.ApplicationName),
+	); err == nil {
+		application = app
+	}
+
+	cursor, err := db.Cursor(
+		dal.From(&models.ArgocdSyncOperation{}),
+		dal.Where("connection_id = ? AND application_name = ?",
+			data.Options.ConnectionId, data.Options.ApplicationName),
+	)
+	if err != nil {
+		return err
+	}
+	defer cursor.Close()
+
+	converter, err := api.NewDataConverter(api.DataConverterArgs{
+		RawDataSubTaskArgs: api.RawDataSubTaskArgs{
+			Ctx:   taskCtx,
+			Table: RAW_SYNC_OPERATION_TABLE,
+			Params: models.ArgocdApiParams{
+				ConnectionId: data.Options.ConnectionId,
+				Name:         data.Options.ApplicationName,
+			},
+		},
+		InputRowType: reflect.TypeOf(models.ArgocdSyncOperation{}),
+		Input:        cursor,
+		Convert: func(inputRow interface{}) ([]interface{}, errors.Error) {
+			syncOp := inputRow.(*models.ArgocdSyncOperation)
+			results := make([]interface{}, 0, 2)
+
+			if !includeSyncOperation(syncOp, data.Options.ScopeConfig, data.RegexEnricher) {
+				return nil, nil
+			}
+
+			scopeId := didgen.NewDomainIdGenerator(&models.ArgocdApplication{}).
+				Generate(data.Options.ConnectionId, syncOp.ApplicationName)
+
+			deploymentId := didgen.NewDomainIdGenerator(&models.ArgocdSyncOperation{}).
+				Generate(data.Options.ConnectionId, syncOp.ApplicationName, syncOp.DeploymentId)
+
+			var created time.Time
+			switch {
+			case syncOp.StartedAt != nil && !syncOp.StartedAt.IsZero():
+				created = *syncOp.StartedAt
+			case syncOp.FinishedAt != nil && !syncOp.FinishedAt.IsZero():
+				created = *syncOp.FinishedAt
+			case !syncOp.CreatedAt.IsZero():
+				created = syncOp.CreatedAt
+			default:
+				created = time.Now()
+			}
+			if created.IsZero() || created.Year() <= 1 {
+				created = time.Now()
+			}
+			created = created.UTC()
+
+			deployment := &devops.CICDDeployment{
+				DomainEntity: domainlayer.DomainEntity{
+					Id: deploymentId,
+				},
+				CicdScopeId:         scopeId,
+				Name:                fmt.Sprintf("%s:%d", syncOp.ApplicationName, syncOp.DeploymentId),
+				DisplayTitle:        syncOp.Message,
+				Result:              convertPhaseToResult(syncOp.Phase),
+				Status:              convertPhaseToStatus(syncOp.Phase),
+				OriginalStatus:      syncOp.Phase,
+				OriginalResult:      syncOp.Phase,
+				Environment:         detectEnvironment(syncOp, application, data.Options.ScopeConfig, data.RegexEnricher),
+				OriginalEnvironment: syncOp.ApplicationName,
+				TaskDatesInfo: devops.TaskDatesInfo{
+					CreatedDate:  created,
+					StartedDate:  syncOp.StartedAt,
+					FinishedDate: syncOp.FinishedAt,
+				},
+			}
+
+			if syncOp.StartedAt != nil && syncOp.FinishedAt != nil {
+				duration := syncOp.FinishedAt.Sub(*syncOp.StartedAt).Seconds()
+				deployment.DurationSec = &duration
+			}
+
+			results = append(results, deployment)
+
+			if syncOp.Revision != "" {
+				repoUrl := deployment.Name
+				if application != nil && application.RepoURL != "" {
+					repoUrl = application.RepoURL
+				}
+
+				deploymentCommit := &devops.CicdDeploymentCommit{
+					DomainEntity:        domainlayer.NewDomainEntity(deploymentId),
+					CicdDeploymentId:    deploymentId,
+					CicdScopeId:         scopeId,
+					Name:                deployment.Name,
+					DisplayTitle:        deployment.DisplayTitle,
+					Url:                 deployment.Url,
+					Result:              deployment.Result,
+					Status:              deployment.Status,
+					OriginalStatus:      deployment.OriginalStatus,
+					OriginalResult:      deployment.OriginalResult,
+					Environment:         deployment.Environment,
+					OriginalEnvironment: deployment.OriginalEnvironment,
+					TaskDatesInfo: devops.TaskDatesInfo{
+						CreatedDate:  created,
+						StartedDate:  syncOp.StartedAt,
+						FinishedDate: syncOp.FinishedAt,
+					},
+					CommitSha: syncOp.Revision,
+					RepoUrl:   repoUrl,
+				}
+				results = append(results, deploymentCommit)
+			}
+
+			return results, nil
+		},
+	})
+
+	if err != nil {
+		return err
+	}
+
+	return converter.Execute()
+}
+
+func convertPhaseToResult(phase string) string {
+	switch phase {
+	case "Succeeded":
+		return devops.RESULT_SUCCESS
+	case "Failed", "Error":
+		return devops.RESULT_FAILURE
+	case "Terminating":
+		return devops.RESULT_FAILURE
+	case "Running":
+		return devops.RESULT_DEFAULT
+	default:
+		return devops.RESULT_DEFAULT
+	}
+}
+
+func convertPhaseToStatus(phase string) string {
+	switch phase {
+	case "Succeeded", "Failed", "Error":
+		return devops.STATUS_DONE
+	case "Running", "Terminating":
+		return devops.STATUS_IN_PROGRESS
+	default:
+		return devops.STATUS_OTHER
+	}
+}
+
+func detectEnvironment(
+	syncOp *models.ArgocdSyncOperation,
+	application *models.ArgocdApplication,
+	config *models.ArgocdScopeConfig,
+	enricher *api.RegexEnricher,
+) string {
+	if config == nil {
+		return devops.TESTING
+	}
+
+	targets := []string{syncOp.ApplicationName}
+	if application != nil {
+		targets = append(targets,
+			application.Name,
+			application.Namespace,
+			application.DestNamespace,
+		)
+	}
+
+	if enricher != nil {
+		if config.ProductionPattern != "" && enricher.ReturnNameIfMatched(devops.PRODUCTION, targets...) != "" {
+			return devops.PRODUCTION
+		}
+		if enricher.ReturnNameIfMatched(devops.ENV_NAME_PATTERN, targets...) != "" {
+			return devops.PRODUCTION
+		}
+		return devops.TESTING
+	}
+
+	if config.ProductionPattern != "" {
+		if re, err := regexp.Compile(config.ProductionPattern); err == nil && re.MatchString(syncOp.ApplicationName) {
+			return devops.PRODUCTION
+		}
+	}
+
+	envPattern := config.EnvNamePattern
+	if envPattern == "" {
+		envPattern = "(?i)prod(.*)"
+	}
+
+	if re, err := regexp.Compile(envPattern); err == nil && re.MatchString(syncOp.ApplicationName) {
+		return devops.PRODUCTION
+	}
+
+	return devops.TESTING
+}
+
+func includeSyncOperation(
+	syncOp *models.ArgocdSyncOperation,
+	config *models.ArgocdScopeConfig,
+	enricher *api.RegexEnricher,
+) bool {
+	if config == nil || config.DeploymentPattern == "" {
+		return true
+	}
+	if enricher != nil {
+		return enricher.ReturnNameIfMatched(devops.DEPLOYMENT, syncOp.ApplicationName) != ""
+	}
+	re, err := regexp.Compile(config.DeploymentPattern)
+	if err != nil {
+		return true
+	}
+	return re.MatchString(syncOp.ApplicationName)
+}
diff --git a/backend/plugins/argocd/tasks/sync_operation_convertor_test.go b/backend/plugins/argocd/tasks/sync_operation_convertor_test.go
new file mode 100644
index 000000000..91048a71e
--- /dev/null
+++ b/backend/plugins/argocd/tasks/sync_operation_convertor_test.go
@@ -0,0 +1,103 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"testing"
+
+	"github.com/apache/incubator-devlake/core/models/domainlayer/devops"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+	"github.com/stretchr/testify/assert"
+)
+
+func TestDetectEnvironment_DefaultsToTestingWhenConfigMissing(t *testing.T) {
+	env := detectEnvironment(
+		&models.ArgocdSyncOperation{ApplicationName: "staging-app"},
+		nil,
+		nil,
+		nil,
+	)
+	assert.Equal(t, devops.TESTING, env)
+}
+
+func TestDetectEnvironment_UsesEnvPatternFallback(t *testing.T) {
+	config := &models.ArgocdScopeConfig{
+		EnvNamePattern: "",
+	}
+	env := detectEnvironment(
+		&models.ArgocdSyncOperation{ApplicationName: "prod-app"},
+		nil,
+		config,
+		nil,
+	)
+	assert.Equal(t, devops.PRODUCTION, env)
+}
+
+func TestDetectEnvironment_UsesRegexEnricherPriorities(t *testing.T) {
+	enricher := api.NewRegexEnricher()
+	assert.NoError(t, enricher.TryAdd(devops.PRODUCTION, "(?i)critical"))
+	assert.NoError(t, enricher.TryAdd(devops.ENV_NAME_PATTERN, "(?i)prod"))
+
+	config := &models.ArgocdScopeConfig{
+		ProductionPattern: "(?i)critical",
+		EnvNamePattern:    "(?i)prod",
+	}
+
+	env := detectEnvironment(
+		&models.ArgocdSyncOperation{ApplicationName: "critical-app"},
+		&models.ArgocdApplication{DestNamespace: "prod-east"},
+		config,
+		enricher,
+	)
+	assert.Equal(t, devops.PRODUCTION, env)
+}
+
+func TestIncludeSyncOperation(t *testing.T) {
+	assert.True(t, includeSyncOperation(&models.ArgocdSyncOperation{ApplicationName: "any"}, nil, nil))
+
+	config := &models.ArgocdScopeConfig{
+		DeploymentPattern: "^prod",
+	}
+	assert.True(t, includeSyncOperation(&models.ArgocdSyncOperation{ApplicationName: "prod-app"}, config, nil))
+	assert.False(t, includeSyncOperation(&models.ArgocdSyncOperation{ApplicationName: "dev-app"}, config, nil))
+
+	config.DeploymentPattern = "(" // invalid regex should default to include
+	assert.True(t, includeSyncOperation(&models.ArgocdSyncOperation{ApplicationName: "dev-app"}, config, nil))
+
+	enricher := api.NewRegexEnricher()
+	assert.NoError(t, enricher.TryAdd(devops.DEPLOYMENT, "(?i)release"))
+	assert.True(t, includeSyncOperation(&models.ArgocdSyncOperation{ApplicationName: "release-app"}, config, enricher))
+	assert.False(t, includeSyncOperation(&models.ArgocdSyncOperation{ApplicationName: "feature-app"}, config, enricher))
+}
+
+func TestConvertPhaseToResult(t *testing.T) {
+	assert.Equal(t, devops.RESULT_SUCCESS, convertPhaseToResult("Succeeded"))
+	assert.Equal(t, devops.RESULT_FAILURE, convertPhaseToResult("Failed"))
+	assert.Equal(t, devops.RESULT_FAILURE, convertPhaseToResult("Error"))
+	assert.Equal(t, devops.RESULT_FAILURE, convertPhaseToResult("Terminating"))
+	assert.Equal(t, devops.RESULT_DEFAULT, convertPhaseToResult("Unknown"))
+}
+
+func TestConvertPhaseToStatus(t *testing.T) {
+	assert.Equal(t, devops.STATUS_DONE, convertPhaseToStatus("Succeeded"))
+	assert.Equal(t, devops.STATUS_DONE, convertPhaseToStatus("Failed"))
+	assert.Equal(t, devops.STATUS_IN_PROGRESS, convertPhaseToStatus("Running"))
+	assert.Equal(t, devops.STATUS_IN_PROGRESS, convertPhaseToStatus("Terminating"))
+	assert.Equal(t, devops.STATUS_OTHER, convertPhaseToStatus("Unknown"))
+}
diff --git a/backend/plugins/argocd/tasks/sync_operation_extractor.go b/backend/plugins/argocd/tasks/sync_operation_extractor.go
new file mode 100644
index 000000000..b73114947
--- /dev/null
+++ b/backend/plugins/argocd/tasks/sync_operation_extractor.go
@@ -0,0 +1,203 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"encoding/json"
+	"time"
+
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/core/models/common"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+)
+
+var _ plugin.SubTaskEntryPoint = ExtractSyncOperations
+
+var ExtractSyncOperationsMeta = plugin.SubTaskMeta{
+	Name:             "extractSyncOperations",
+	EntryPoint:       ExtractSyncOperations,
+	EnabledByDefault: true,
+	Description:      "Extract sync operations from raw data",
+	DependencyTables: []string{RAW_SYNC_OPERATION_TABLE},
+	ProductTables:    []string{models.ArgocdSyncOperation{}.TableName()},
+}
+
+type ArgocdApiSyncOperation struct {
+	// For history entries
+	ID              int64      `json:"id"`
+	Revision        string     `json:"revision"`
+	DeployedAt      time.Time  `json:"deployedAt"`
+	DeployStartedAt *time.Time `json:"deployStartedAt"`
+	Source          struct {
+		RepoURL string `json:"repoURL"`
+	} `json:"source"`
+	InitiatedBy struct {
+		Username  string `json:"username"`
+		Automated bool   `json:"automated"`
+	} `json:"initiatedBy"`
+
+	// For operationState (current operation)
+	Phase      string     `json:"phase"` // Succeeded, Failed, Error, Running, Terminating
+	Message    string     `json:"message"`
+	StartedAt  time.Time  `json:"startedAt"`
+	FinishedAt *time.Time `json:"finishedAt"`
+	SyncResult struct {
+		Revision  string                      `json:"revision"`
+		Resources []ArgocdApiSyncResourceItem `json:"resources"`
+	} `json:"syncResult"`
+}
+
+type ArgocdApiSyncResourceItem struct {
+	Group     string `json:"group"`
+	Version   string `json:"version"`
+	Kind      string `json:"kind"`
+	Namespace string `json:"namespace"`
+	Name      string `json:"name"`
+	Status    string `json:"status"`
+	Message   string `json:"message"`
+}
+
+func ExtractSyncOperations(taskCtx plugin.SubTaskContext) errors.Error {
+	data := taskCtx.GetData().(*ArgocdTaskData)
+
+	extractor, err := api.NewApiExtractor(api.ApiExtractorArgs{
+		RawDataSubTaskArgs: api.RawDataSubTaskArgs{
+			Ctx:   taskCtx,
+			Table: RAW_SYNC_OPERATION_TABLE,
+			Params: models.ArgocdApiParams{
+				ConnectionId: data.Options.ConnectionId,
+				Name:         data.Options.ApplicationName,
+			},
+		},
+		Extract: func(row *api.RawData) ([]interface{}, errors.Error) {
+			var apiOp ArgocdApiSyncOperation
+			err := json.Unmarshal(row.Data, &apiOp)
+			if err != nil {
+				return nil, errors.Default.Wrap(err, "error unmarshaling sync operation")
+			}
+
+			syncOp := &models.ArgocdSyncOperation{
+				ConnectionId:    data.Options.ConnectionId,
+				ApplicationName: data.Options.ApplicationName,
+				NoPKModel:       common.NewNoPKModel(),
+			}
+
+			normalize := func(t time.Time) *time.Time {
+				if t.IsZero() {
+					return nil
+				}
+				return &t
+			}
+			normalizePtr := func(t *time.Time) *time.Time {
+				if t == nil {
+					return nil
+				}
+				if t.IsZero() {
+					return nil
+				}
+				return t
+			}
+
+			isOperationState := apiOp.Phase != ""
+
+			if !isOperationState && apiOp.DeployedAt.IsZero() && apiOp.Revision == "" {
+				return nil, nil
+			}
+
+			if isOperationState {
+				start := normalize(apiOp.StartedAt)
+				if start != nil {
+					syncOp.DeploymentId = start.Unix()
+				} else {
+					syncOp.DeploymentId = time.Now().Unix()
+				}
+				syncOp.Revision = apiOp.SyncResult.Revision
+				syncOp.StartedAt = start
+				syncOp.FinishedAt = normalizePtr(apiOp.FinishedAt)
+				syncOp.Phase = apiOp.Phase
+				syncOp.Message = apiOp.Message
+				syncOp.ResourcesCount = len(apiOp.SyncResult.Resources)
+			} else {
+				deployedAt := normalize(apiOp.DeployedAt)
+				if deployedAt != nil {
+					syncOp.DeploymentId = deployedAt.Unix()
+				} else {
+					syncOp.DeploymentId = time.Now().Unix()
+				}
+
+				syncOp.Revision = apiOp.Revision
+				syncOp.FinishedAt = deployedAt
+				start := normalizePtr(apiOp.DeployStartedAt)
+				if start == nil {
+					start = deployedAt
+				}
+				syncOp.StartedAt = start
+				syncOp.Phase = "Succeeded"
+
+				if apiOp.InitiatedBy.Automated {
+					syncOp.InitiatedBy = "automated"
+				} else {
+					syncOp.InitiatedBy = apiOp.InitiatedBy.Username
+				}
+			}
+
+			syncOp.Kind = extractPrimaryDeploymentKind(apiOp.SyncResult.Resources)
+
+			return []interface{}{syncOp}, nil
+		},
+	})
+
+	if err != nil {
+		return err
+	}
+
+	return extractor.Execute()
+}
+
+// extractPrimaryDeploymentKind identifies the primary deployment resource kind from the resources list.
+// It prioritizes actual deployment resources over supporting resources like Services or Ingresses.
+func extractPrimaryDeploymentKind(resources []ArgocdApiSyncResourceItem) string {
+	// Priority order for deployment resources
+	priorityKinds := []string{
+		"Rollout",     // Argo Rollouts
+		"Deployment",  // Standard K8s Deployment
+		"StatefulSet", // Stateful applications
+		"DaemonSet",   // Node-level deployments
+		"ReplicaSet",  // Direct ReplicaSet management
+		"Job",         // Batch jobs
+		"CronJob",     // Scheduled jobs
+	}
+
+	for _, priorityKind := range priorityKinds {
+		for _, resource := range resources {
+			if resource.Kind == priorityKind {
+				return priorityKind
+			}
+		}
+	}
+
+	for _, resource := range resources {
+		if resource.Kind != "" {
+			return resource.Kind
+		}
+	}
+
+	return ""
+}
diff --git a/backend/plugins/argocd/tasks/task_data.go b/backend/plugins/argocd/tasks/task_data.go
new file mode 100644
index 000000000..7a5df54a3
--- /dev/null
+++ b/backend/plugins/argocd/tasks/task_data.go
@@ -0,0 +1,61 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"time"
+
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	"github.com/apache/incubator-devlake/plugins/argocd/models"
+)
+
+type ArgocdTaskData struct {
+	Options       *ArgocdOptions
+	ApiClient     *api.ApiAsyncClient
+	RegexEnricher *api.RegexEnricher
+}
+
+type ArgocdOptions struct {
+	ConnectionId     uint64                    `json:"connectionId"`
+	ApplicationName  string                    `json:"applicationName"`
+	ScopeConfigId    uint64                    `json:"scopeConfigId,omitempty" mapstructure:"scopeConfigId,omitempty"`
+	ScopeConfig      *models.ArgocdScopeConfig `json:"scopeConfig,omitempty" mapstructure:"scopeConfig,omitempty"`
+	CreatedDateAfter *time.Time                `json:"createdDateAfter"`
+}
+
+func DecodeAndValidateTaskOptions(options map[string]interface{}) (*ArgocdOptions, errors.Error) {
+	var op ArgocdOptions
+	if err := api.Decode(options, &op, nil); err != nil {
+		return nil, err
+	}
+
+	if op.ConnectionId == 0 {
+		return nil, errors.BadInput.New("connectionId is required")
+	}
+
+	if op.ApplicationName == "" {
+		return nil, errors.BadInput.New("applicationName is required")
+	}
+
+	if op.ScopeConfig == nil {
+		op.ScopeConfig = &models.ArgocdScopeConfig{}
+	}
+
+	return &op, nil
+}
diff --git a/backend/plugins/argocd/tasks/task_data_test.go b/backend/plugins/argocd/tasks/task_data_test.go
new file mode 100644
index 000000000..fa8718cb5
--- /dev/null
+++ b/backend/plugins/argocd/tasks/task_data_test.go
@@ -0,0 +1,55 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package tasks
+
+import (
+	"testing"
+
+	"github.com/apache/incubator-devlake/core/errors"
+	"github.com/stretchr/testify/assert"
+)
+
+func TestDecodeAndValidateTaskOptions_RequiresConnectionId(t *testing.T) {
+	_, err := DecodeAndValidateTaskOptions(map[string]interface{}{
+		"applicationName": "app",
+	})
+	assert.Error(t, err)
+	if lakeErr := errors.AsLakeErrorType(err); assert.NotNil(t, lakeErr) {
+		assert.Equal(t, errors.BadInput, lakeErr.GetType())
+	}
+}
+
+func TestDecodeAndValidateTaskOptions_RequiresApplicationName(t *testing.T) {
+	_, err := DecodeAndValidateTaskOptions(map[string]interface{}{
+		"connectionId": uint64(1),
+	})
+	assert.Error(t, err)
+	if lakeErr := errors.AsLakeErrorType(err); assert.NotNil(t, lakeErr) {
+		assert.Equal(t, errors.BadInput, lakeErr.GetType())
+	}
+}
+
+func TestDecodeAndValidateTaskOptions_DefaultScopeConfig(t *testing.T) {
+	opts, err := DecodeAndValidateTaskOptions(map[string]interface{}{
+		"connectionId":    uint64(1),
+		"applicationName": "prod-app",
+	})
+	assert.NoError(t, err)
+	assert.NotNil(t, opts.ScopeConfig)
+	assert.Equal(t, "", opts.ScopeConfig.EnvNamePattern)
+}
diff --git a/backend/plugins/customize/e2e/import_issue_changelogs_test.go b/backend/plugins/customize/e2e/import_issue_changelogs_test.go
index c62bad04e..4cabae99c 100644
--- a/backend/plugins/customize/e2e/import_issue_changelogs_test.go
+++ b/backend/plugins/customize/e2e/import_issue_changelogs_test.go
@@ -34,7 +34,7 @@ func TestImportIssueChangelogDataFlow(t *testing.T) {
 
 	// 清空表
 	dataflowTester.FlushTabler(&ticket.IssueChangelogs{})
-    dataflowTester.FlushTabler(&crossdomain.Account{})
+	dataflowTester.FlushTabler(&crossdomain.Account{})
 
 	// 初始化服务
 	svc := service.NewService(dataflowTester.Dal)
diff --git a/backend/plugins/customize/e2e/import_issue_worklogs_test.go b/backend/plugins/customize/e2e/import_issue_worklogs_test.go
index 71ed67e6b..ffbb4340c 100644
--- a/backend/plugins/customize/e2e/import_issue_worklogs_test.go
+++ b/backend/plugins/customize/e2e/import_issue_worklogs_test.go
@@ -60,7 +60,7 @@ func TestImportIssueWorklogDataFlow(t *testing.T) {
 			"author_id",
 			"time_spent_minutes",
 			"started_date",
-            "logged_date",
+			"logged_date",
 			"comment",
 		})
 
@@ -85,7 +85,7 @@ func TestImportIssueWorklogDataFlow(t *testing.T) {
 			"author_id",
 			"time_spent_minutes",
 			"started_date",
-            "logged_date",
+			"logged_date",
 			"comment",
 		})
 
diff --git a/backend/plugins/table_info_test.go b/backend/plugins/table_info_test.go
index 8e6a5f0c3..3bf090372 100644
--- a/backend/plugins/table_info_test.go
+++ b/backend/plugins/table_info_test.go
@@ -22,6 +22,7 @@ import (
 
 	"github.com/apache/incubator-devlake/helpers/unithelper"
 	ae "github.com/apache/incubator-devlake/plugins/ae/impl"
+	argocd "github.com/apache/incubator-devlake/plugins/argocd/impl"
 	azuredevops "github.com/apache/incubator-devlake/plugins/azuredevops_go/impl"
 	bamboo "github.com/apache/incubator-devlake/plugins/bamboo/impl"
 	bitbucket "github.com/apache/incubator-devlake/plugins/bitbucket/impl"
@@ -67,6 +68,7 @@ func Test_GetPluginTablesInfo(t *testing.T) {
 	checker.FeedIn("bamboo/models", bamboo.Bamboo{}.GetTablesInfo)
 	checker.FeedIn("bitbucket/models", bitbucket.Bitbucket{}.GetTablesInfo)
 	checker.FeedIn("bitbucket_server/models", bitbucket_server.BitbucketServer{}.GetTablesInfo)
+	checker.FeedIn("argocd/models", argocd.ArgoCD{}.GetTablesInfo)
 	checker.FeedIn("customize/models", customize.Customize{}.GetTablesInfo)
 	checker.FeedIn("dbt", dbt.Dbt{}.GetTablesInfo)
 	checker.FeedIn("dora/models", dora.Dora{}.GetTablesInfo)
diff --git a/backend/test/e2e/manual/argocd/argocd_test.go b/backend/test/e2e/manual/argocd/argocd_test.go
new file mode 100644
index 000000000..67bc8bfa3
--- /dev/null
+++ b/backend/test/e2e/manual/argocd/argocd_test.go
@@ -0,0 +1,155 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package argocd
+
+import (
+	"fmt"
+	"testing"
+
+	"github.com/apache/incubator-devlake/core/config"
+	"github.com/apache/incubator-devlake/core/models"
+	"github.com/apache/incubator-devlake/core/models/common"
+	"github.com/apache/incubator-devlake/core/plugin"
+	"github.com/apache/incubator-devlake/helpers/pluginhelper/api"
+	argocdimpl "github.com/apache/incubator-devlake/plugins/argocd/impl"
+	argocdmodels "github.com/apache/incubator-devlake/plugins/argocd/models"
+	"github.com/apache/incubator-devlake/test/helper"
+	"github.com/stretchr/testify/require"
+)
+
+const pluginName = "argocd"
+
+func TestArgoCDPlugin(t *testing.T) {
+	cfg := helper.GetTestConfig[TestConfig]()
+	require.NotEmpty(t, cfg.Endpoint, "Endpoint must be provided via helper.SetTestConfig(TestConfig{...})")
+	require.NotEmpty(t, cfg.Token, "Token must be provided via helper.SetTestConfig(TestConfig{...})")
+	require.NotEmpty(t, cfg.Applications, "At least one application is required for the ArgoCD E2E test")
+
+	client := helper.ConnectLocalServer(t, &helper.LocalClientConfig{
+		ServerPort:   8092,
+		DbURL:        config.GetConfig().GetString("E2E_DB_URL"),
+		CreateServer: true,
+		DropDb:       false,
+		TruncateDb:   true,
+		Plugins: []plugin.PluginMeta{
+			argocdimpl.ArgoCD{},
+		},
+	})
+
+	createConnection := func() *helper.Connection {
+		connection := argocdmodels.ArgocdConnection{
+			BaseConnection: api.BaseConnection{
+				Name: "argocd-conn",
+			},
+			ArgocdConn: argocdmodels.ArgocdConn{
+				RestConnection: api.RestConnection{
+					Endpoint:         cfg.Endpoint,
+					Proxy:            "",
+					RateLimitPerHour: 3000,
+				},
+				AccessToken: api.AccessToken{
+					Token: cfg.Token,
+				},
+			},
+		}
+		client.TestConnection(pluginName, connection)
+		return client.CreateConnection(pluginName, connection)
+	}
+
+	connection := createConnection()
+
+	scopeConfig := helper.Cast[argocdmodels.ArgocdScopeConfig](client.CreateScopeConfig(pluginName, connection.ID, argocdmodels.ArgocdScopeConfig{
+		ScopeConfig: common.ScopeConfig{
+			Name: "argocd-default",
+			Entities: []string{
+				plugin.DOMAIN_TYPE_CICD,
+			},
+		},
+		EnvNamePattern:    "(?i)prod(.*)",
+		DeploymentPattern: ".*",
+		ProductionPattern: "(?i)(prod|production)",
+	}))
+
+	var scopePayload []any
+	for _, spec := range cfg.Applications {
+		require.NotEmpty(t, spec.Name, "application name must not be empty")
+
+		remote := client.RemoteScopes(helper.RemoteScopesQuery{
+			PluginName:   pluginName,
+			ConnectionId: connection.ID,
+			GroupId:      spec.Project,
+		})
+
+		var selected *argocdmodels.ArgocdApplication
+		for _, child := range remote.Children {
+			if child.Type != "scope" {
+				continue
+			}
+			app := helper.Cast[argocdmodels.ArgocdApplication](child.Data)
+			if app.Name == spec.Name && (spec.Project == "" || app.Project == spec.Project) {
+				app.ScopeConfigId = scopeConfig.ID
+				selected = &app
+				scopePayload = append(scopePayload, app)
+				break
+			}
+		}
+		require.NotNil(t, selected, "application %s/%s not found via remote scopes", spec.Project, spec.Name)
+	}
+
+	createdScopes := helper.Cast[[]*argocdmodels.ArgocdApplication](client.CreateScopes(pluginName, connection.ID, scopePayload...))
+	require.Equal(t, len(scopePayload), len(createdScopes))
+
+	project := client.CreateProject(&helper.ProjectConfig{
+		ProjectName: fmt.Sprintf("project-%s", pluginName),
+		EnableDora:  true,
+	})
+
+	listedScopes := client.ListScopes(pluginName, connection.ID, false).Scopes
+	require.GreaterOrEqual(t, len(listedScopes), len(createdScopes))
+
+	var blueprintScopes []*models.BlueprintScope
+	for _, scope := range createdScopes {
+		blueprintScopes = append(blueprintScopes, &models.BlueprintScope{
+			ScopeId: scope.ScopeId(),
+		})
+	}
+	require.Equal(t, len(scopePayload), len(blueprintScopes))
+
+	require.NotNil(t, project.Blueprint, "project should have an auto-generated blueprint")
+	blueprint := client.PatchBasicBlueprintV2(project.Blueprint.ID, connection.Name, &helper.BlueprintV2Config{
+		Connection: &models.BlueprintConnection{
+			PluginName:   pluginName,
+			ConnectionId: connection.ID,
+			Scopes:       blueprintScopes,
+		},
+		SkipOnFail:  true,
+		ProjectName: project.Name,
+	})
+	project = client.GetProject(project.Name)
+	require.Equal(t, blueprint.ID, project.Blueprint.ID)
+
+	pipeline := client.TriggerBlueprint(project.Blueprint.ID)
+	require.Equal(t, models.TASK_COMPLETED, pipeline.Status)
+
+	client.DeleteBlueprint(project.Blueprint.ID)
+	for _, scope := range createdScopes {
+		client.DeleteScope(pluginName, connection.ID, scope.ScopeId(), false)
+	}
+	client.DeleteScopeConfig(pluginName, connection.ID, scopeConfig.ID)
+	client.DeleteConnection(pluginName, connection.ID)
+}
diff --git a/backend/test/e2e/manual/argocd/models.go b/backend/test/e2e/manual/argocd/models.go
new file mode 100644
index 000000000..5738135b1
--- /dev/null
+++ b/backend/test/e2e/manual/argocd/models.go
@@ -0,0 +1,29 @@
+/*
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+package argocd
+
+type ApplicationSpec struct {
+	Project string
+	Name    string
+}
+
+type TestConfig struct {
+	Endpoint     string
+	Token        string
+	Applications []ApplicationSpec
+}
diff --git a/config-ui/src/plugins/register/argocd/assets/icon.svg b/config-ui/src/plugins/register/argocd/assets/icon.svg
new file mode 100644
index 000000000..7092671ee
--- /dev/null
+++ b/config-ui/src/plugins/register/argocd/assets/icon.svg
@@ -0,0 +1,24 @@
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<svg width="36" height="36" viewBox="0 0 36 36" fill="#7497F7" xmlns="http://www.w3.org/2000/svg">
+  <path
+    d="M18.797.602c.633.05 1.265.144 1.887.27 2.441.558 4.539 1.76 6.37 3.437 1.692 1.543 2.79 3.449 3.4 5.644.128.465.312.817.85.906.298.051.348.356.348.625.004.942 0 1.883 0 2.825v1.757c-.004.516-.172.696-.675.688-.309-.004-.43.176-.504.426-.211.71-.48 1.406-.801 2.074-1.192 2.445-3.031 4.27-5.363 5.625q-.17.098-.34.191c-.367.2-.375.211-.227.606.168.433.524.77.969.906.39.14.8.195 1.2.309.12.02.241.066.347.132-.098.122-.23.102-.34.122-.523.105-1.035.265-1.578.246a1.8 1.8 0 0 1-.637-.094 [...]
+  />
+  <path
+    d="M7.273 13.86c-.015-1.602.211-2.989.79-4.305.917-2.098 2.386-3.715 4.328-4.907a.56.56 0 0 1 .672.098c.085.086.05.172.011.258a1.6 1.6 0 0 1-.695.742c-1.57.93-2.66 2.285-3.426 3.91a9.15 9.15 0 0 0-.902 4.34c.082 1.902.64 3.66 1.765 5.219.13.152.215.336.25.531.016.117.086.242-.043.332a.46.46 0 0 1-.421.059.77.77 0 0 1-.34-.27c-1.047-1.422-1.735-2.988-1.934-4.762-.055-.472-.008-.945-.055-1.246M13.5 4.004a.55.55 0 0 1 .55-.559c.31.004.595.332.606.692.004.199-.449.566-.695.558-.274-.008- [...]
+  />
+</svg>
\ No newline at end of file
diff --git a/config-ui/src/plugins/register/slack/config.tsx b/config-ui/src/plugins/register/argocd/config.tsx
similarity index 53%
copy from config-ui/src/plugins/register/slack/config.tsx
copy to config-ui/src/plugins/register/argocd/config.tsx
index 566cad726..c359b473c 100644
--- a/config-ui/src/plugins/register/slack/config.tsx
+++ b/config-ui/src/plugins/register/argocd/config.tsx
@@ -16,48 +16,66 @@
  *
  */
 
+import { ExternalLink } from '@/components';
 import { DOC_URL } from '@/release';
 import { IPluginConfig } from '@/types';
 
 import Icon from './assets/icon.svg?react';
 
-export const SlackConfig: IPluginConfig = {
-  plugin: 'slack',
-  name: 'Slack',
+export const ArgoCDConfig: IPluginConfig = {
+  plugin: 'argocd',
+  name: 'ArgoCD',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 12,
+  sort: 1,
+  isBeta: true,
   connection: {
-    docLink: DOC_URL.PLUGIN.SLACK?.BASIS,
+    docLink: '',
     initialValues: {
-      endpoint: 'https://slack.com/api/',
+      endpoint: 'https://',
     },
     fields: [
       'name',
       {
         key: 'endpoint',
-        multipleVersions: {
-          cloud: 'https://slack.com/api/',
-          server: '',
-        },
+        subLabel: 'Provide the ArgoCD server API endpoint. E.g. https://argocd.example.com/api/v1',
       },
       {
         key: 'token',
-        label: 'Slack Bot Token',
-        subLabel:
-          'Create a Slack App with the necessary permissions and use the Bot User OAuth Token (starts with xoxb-).',
+        label: 'Bearer Token',
+        subLabel: (
+          <>
+            Provide your ArgoCD API token for authentication.{' '}
+            <ExternalLink link="https://argo-cd.readthedocs.io/en/stable/user-guide/commands/argocd_account_generate-token/">
+              Learn how to generate a token
+            </ExternalLink>
+          </>
+        ),
       },
       'proxy',
       {
         key: 'rateLimitPerHour',
         subLabel:
-          'By default, DevLake uses 3,000 requests/hour for data collection for Slack. You can adjust the collection speed by setting a custom rate limit.',
-        learnMore: DOC_URL.PLUGIN.SLACK?.RATE_LIMIT,
-        externalInfo: 'Slack’s rate limits vary by method and workspace plan.',
+          'By default, DevLake uses 3,000 requests/hour for data collection for ArgoCD. You can adjust the collection speed by setting your desired rate limit.',
+        learnMore: '',
+        externalInfo: 'ArgoCD does not specify a maximum rate limit value.',
         defaultValue: 3000,
       },
     ],
   },
   dataScope: {
-    title: 'Channels',
+    title: 'Applications',
+    millerColumn: {
+      columnCount: 2,
+      firstColumnTitle: 'Projects',
+    },
+  },
+  scopeConfig: {
+    entities: ['CICD'],
+    transformation: {
+      component: 'ArgoCDTransformation',
+      envNamePattern: '(?i)prod(.*)',
+      deploymentPattern: '',
+      productionPattern: '',
+    },
   },
 };
diff --git a/.devcontainer/devcontainer.json b/config-ui/src/plugins/register/argocd/index.ts
similarity index 52%
copy from .devcontainer/devcontainer.json
copy to config-ui/src/plugins/register/argocd/index.ts
index d1e59507c..5f16858cb 100644
--- a/.devcontainer/devcontainer.json
+++ b/config-ui/src/plugins/register/argocd/index.ts
@@ -16,33 +16,5 @@
  *
  */
 
-{
-  "name": "Go",
-  "dockerComposeFile": "docker-compose.yml",
-  "service": "devcontainer",
-  "workspaceFolder": "/workspace",
-  "features": {
-    "ghcr.io/jungaretti/features/make:1": {},
-    "ghcr.io/devcontainers/features/docker-in-docker:2.12.0": {},
-    "ghcr.io/devcontainers/features/python:1": {
-      "version": "3.9"
-    },
-    "ghcr.io/devcontainers-extra/features/poetry:2": {},
-    "ghcr.io/devcontainers/features/node:1": {
-      "version": "18"
-    }
-  },
-  "forwardPorts": [
-    4000,
-    8080
-  ],
-  "postCreateCommand": "npm install commitizen -g",
-  "customizations": {
-    "vscode": {
-      "extensions": [
-        "streetsidesoftware.code-spell-checker"
-      ]
-    }
-  },
-  "remoteUser": "root"
-}
\ No newline at end of file
+export * from './config';
+export * from './transformation';
diff --git a/config-ui/src/plugins/register/argocd/transformation.tsx b/config-ui/src/plugins/register/argocd/transformation.tsx
new file mode 100644
index 000000000..732d5c814
--- /dev/null
+++ b/config-ui/src/plugins/register/argocd/transformation.tsx
@@ -0,0 +1,146 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+import { CaretRightOutlined } from '@ant-design/icons';
+import { theme, Collapse, Tag, Input } from 'antd';
+
+import { ExternalLink, HelpTooltip } from '@/components';
+import { DOC_URL } from '@/release';
+
+interface Props {
+  entities: string[];
+  transformation: any;
+  setTransformation: React.Dispatch<React.SetStateAction<any>>;
+}
+
+export const ArgoCDTransformation = ({ entities, transformation, setTransformation }: Props) => {
+  const { token } = theme.useToken();
+
+  const panelStyle: React.CSSProperties = {
+    marginBottom: 24,
+    background: token.colorFillAlter,
+    borderRadius: token.borderRadiusLG,
+    border: 'none',
+  };
+
+  return (
+    <Collapse
+      bordered={false}
+      defaultActiveKey={['CICD']}
+      expandIcon={({ isActive }) => <CaretRightOutlined rotate={isActive ? 90 : 0} rev="" />}
+      style={{ background: token.colorBgContainer }}
+      size="large"
+      items={renderCollapseItems({
+        entities,
+        panelStyle,
+        transformation,
+        onChangeTransformation: setTransformation,
+      })}
+    />
+  );
+};
+
+const renderCollapseItems = ({
+  entities,
+  panelStyle,
+  transformation,
+  onChangeTransformation,
+}: {
+  entities: string[];
+  panelStyle: React.CSSProperties;
+  transformation: any;
+  onChangeTransformation: any;
+}) =>
+  [
+    {
+      key: 'CICD',
+      label: 'CI/CD',
+      style: panelStyle,
+      children: (
+        <>
+          <h3 style={{ marginBottom: 16 }}>
+            <span>Deployment</span>
+            <Tag style={{ marginLeft: 4 }} color="blue">
+              DORA
+            </Tag>
+          </h3>
+          <p style={{ marginBottom: 16 }}>
+            Use Regular Expressions to define how DevLake identifies deployments and production environments from ArgoCD
+            sync operations to measure DORA metrics.
+          </p>
+          <div style={{ marginTop: 16 }}>
+            <strong>Environment Detection</strong>
+          </div>
+          <div style={{ margin: '8px 0', paddingLeft: 28 }}>
+            <span>An ArgoCD sync operation is a 'Production Deployment' when the application name matches</span>
+            <Input
+              style={{ width: 200, margin: '0 8px' }}
+              placeholder="(?i)prod(.*)"
+              value={transformation.envNamePattern ?? '(?i)prod(.*)'}
+              onChange={(e) =>
+                onChangeTransformation({
+                  ...transformation,
+                  envNamePattern: e.target.value,
+                })
+              }
+            />
+            <i style={{ color: '#E34040' }}>*</i>
+            <HelpTooltip content="Use regex to match application names. Default pattern matches any name containing 'prod' (case-insensitive)." />
+          </div>
+          <div style={{ marginTop: 16, marginBottom: 8 }}>
+            <strong>Optional Filters</strong>
+          </div>
+          <div style={{ margin: '8px 0', paddingLeft: 28 }}>
+            <span>Deployment Pattern (filter sync operations by application name)</span>
+            <Input
+              style={{ width: 200, margin: '0 8px' }}
+              placeholder=".*"
+              value={transformation.deploymentPattern ?? ''}
+              onChange={(e) =>
+                onChangeTransformation({
+                  ...transformation,
+                  deploymentPattern: e.target.value,
+                })
+              }
+            />
+            <HelpTooltip content="Optional: Use regex to include only specific applications. Leave empty to include all." />
+          </div>
+          <div style={{ margin: '8px 0', paddingLeft: 28 }}>
+            <span>Production Pattern (additional pattern for production detection)</span>
+            <Input
+              style={{ width: 200, margin: '0 8px' }}
+              placeholder=""
+              value={transformation.productionPattern ?? ''}
+              onChange={(e) =>
+                onChangeTransformation({
+                  ...transformation,
+                  productionPattern: e.target.value,
+                })
+              }
+            />
+            <HelpTooltip content="Optional: Additional regex pattern to identify production deployments." />
+          </div>
+          <div style={{ marginTop: 16, padding: '8px 12px', background: '#f0f7ff', borderRadius: '4px' }}>
+            <strong>Note:</strong> ArgoCD limits deployment history to the last 10 sync operations by default (controlled
+            by <code>revisionHistoryLimit</code>). Consider increasing this value in your ArgoCD application settings for
+            better historical metrics.
+          </div>
+        </>
+      ),
+    },
+  ].filter((it) => entities.includes(it.key));
diff --git a/config-ui/src/plugins/register/azure/config.tsx b/config-ui/src/plugins/register/azure/config.tsx
index 8a2324888..4d726f1ec 100644
--- a/config-ui/src/plugins/register/azure/config.tsx
+++ b/config-ui/src/plugins/register/azure/config.tsx
@@ -27,7 +27,7 @@ export const AzureConfig: IPluginConfig = {
   plugin: 'azuredevops',
   name: 'Azure DevOps',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 1,
+  sort: 2,
   connection: {
     docLink: DOC_URL.PLUGIN.AZUREDEVOPS.BASIS,
     fields: [
@@ -78,7 +78,7 @@ export const AzureGoConfig: IPluginConfig = {
   plugin: 'azuredevops_go',
   name: 'Azure DevOps Go',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 1,
+  sort: 2,
   isBeta: true,
   connection: {
     docLink: DOC_URL.PLUGIN.AZUREDEVOPS.BASIS,
diff --git a/config-ui/src/plugins/register/bamboo/config.tsx b/config-ui/src/plugins/register/bamboo/config.tsx
index cd7f8f775..9c0a614eb 100644
--- a/config-ui/src/plugins/register/bamboo/config.tsx
+++ b/config-ui/src/plugins/register/bamboo/config.tsx
@@ -25,7 +25,7 @@ export const BambooConfig: IPluginConfig = {
   plugin: 'bamboo',
   name: 'Bamboo',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 2,
+  sort: 3,
   connection: {
     docLink: DOC_URL.PLUGIN.BAMBOO.BASIS,
     fields: [
diff --git a/config-ui/src/plugins/register/bitbucket-server/config.tsx b/config-ui/src/plugins/register/bitbucket-server/config.tsx
index 21fa96353..f3b3c2bb0 100644
--- a/config-ui/src/plugins/register/bitbucket-server/config.tsx
+++ b/config-ui/src/plugins/register/bitbucket-server/config.tsx
@@ -25,7 +25,7 @@ export const BitbucketServerConfig: IPluginConfig = {
   plugin: 'bitbucket_server',
   name: 'Bitbucket Server',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 3,
+  sort: 4,
   isBeta: true,
   connection: {
     docLink: DOC_URL.PLUGIN.BITBUCKET_SERVER.BASIS,
diff --git a/config-ui/src/plugins/register/bitbucket/config.tsx b/config-ui/src/plugins/register/bitbucket/config.tsx
index 6d7cc6237..ba9171871 100644
--- a/config-ui/src/plugins/register/bitbucket/config.tsx
+++ b/config-ui/src/plugins/register/bitbucket/config.tsx
@@ -25,7 +25,7 @@ export const BitbucketConfig: IPluginConfig = {
   plugin: 'bitbucket',
   name: 'Bitbucket Cloud',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 3,
+  sort: 4,
   connection: {
     docLink: DOC_URL.PLUGIN.BITBUCKET.BASIS,
     initialValues: {
diff --git a/config-ui/src/plugins/register/circleci/config.tsx b/config-ui/src/plugins/register/circleci/config.tsx
index 675f893f7..f6fcf06cc 100644
--- a/config-ui/src/plugins/register/circleci/config.tsx
+++ b/config-ui/src/plugins/register/circleci/config.tsx
@@ -25,7 +25,7 @@ export const CircleCIConfig: IPluginConfig = {
   plugin: 'circleci',
   name: 'CircleCI',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 4,
+  sort: 5,
   connection: {
     docLink: '',
     fields: [
diff --git a/config-ui/src/plugins/register/github/config.tsx b/config-ui/src/plugins/register/github/config.tsx
index a7fb882f1..9a372f984 100644
--- a/config-ui/src/plugins/register/github/config.tsx
+++ b/config-ui/src/plugins/register/github/config.tsx
@@ -28,7 +28,7 @@ export const GitHubConfig: IPluginConfig = {
   plugin: 'github',
   name: 'GitHub',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 5,
+  sort: 6,
   connection: {
     docLink: DOC_URL.PLUGIN.GITHUB.BASIS,
     initialValues: {
diff --git a/config-ui/src/plugins/register/gitlab/config.tsx b/config-ui/src/plugins/register/gitlab/config.tsx
index b8924d7f7..daddf39c3 100644
--- a/config-ui/src/plugins/register/gitlab/config.tsx
+++ b/config-ui/src/plugins/register/gitlab/config.tsx
@@ -26,7 +26,7 @@ export const GitLabConfig: IPluginConfig = {
   plugin: 'gitlab',
   name: 'GitLab',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 6,
+  sort: 7,
   connection: {
     docLink: DOC_URL.PLUGIN.GITLAB.BASIS,
     initialValues: {
diff --git a/config-ui/src/plugins/register/index.ts b/config-ui/src/plugins/register/index.ts
index 8fb38ee29..225032a5b 100644
--- a/config-ui/src/plugins/register/index.ts
+++ b/config-ui/src/plugins/register/index.ts
@@ -18,6 +18,7 @@
 
 import { IPluginConfig } from '@/types';
 
+import { ArgoCDConfig } from './argocd';
 import { AzureConfig, AzureGoConfig } from './azure';
 import { BambooConfig } from './bamboo';
 import { BitbucketConfig } from './bitbucket';
@@ -39,6 +40,7 @@ import { TestmoConfig } from './testmo';
 import { SlackConfig } from './slack/config';
 
 export const pluginConfigs: IPluginConfig[] = [
+  ArgoCDConfig,
   AzureConfig,
   AzureGoConfig,
   BambooConfig,
diff --git a/config-ui/src/plugins/register/jenkins/config.tsx b/config-ui/src/plugins/register/jenkins/config.tsx
index 9bfc02f4e..68d62f089 100644
--- a/config-ui/src/plugins/register/jenkins/config.tsx
+++ b/config-ui/src/plugins/register/jenkins/config.tsx
@@ -25,7 +25,7 @@ export const JenkinsConfig: IPluginConfig = {
   plugin: 'jenkins',
   name: 'Jenkins',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 7,
+  sort: 8,
   connection: {
     docLink: DOC_URL.PLUGIN.JENKINS.BASIS,
     fields: [
diff --git a/config-ui/src/plugins/register/jira/config.tsx b/config-ui/src/plugins/register/jira/config.tsx
index 488972068..c6544d6e9 100644
--- a/config-ui/src/plugins/register/jira/config.tsx
+++ b/config-ui/src/plugins/register/jira/config.tsx
@@ -26,7 +26,7 @@ export const JiraConfig: IPluginConfig = {
   plugin: 'jira',
   name: 'Jira',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 8,
+  sort: 9,
   connection: {
     docLink: DOC_URL.PLUGIN.JIRA.BASIS,
     fields: [
diff --git a/config-ui/src/plugins/register/opsgenie/config.tsx b/config-ui/src/plugins/register/opsgenie/config.tsx
index 20ab9b2be..e7f160022 100644
--- a/config-ui/src/plugins/register/opsgenie/config.tsx
+++ b/config-ui/src/plugins/register/opsgenie/config.tsx
@@ -27,7 +27,7 @@ export const OpsgenieConfig: IPluginConfig = {
   plugin: 'opsgenie',
   name: 'Opsgenie',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 9,
+  sort: 10,
   connection: {
     docLink: DOC_URL.PLUGIN.OPSGENIE.BASIS,
     initialValues: {
diff --git a/config-ui/src/plugins/register/pagerduty/config.tsx b/config-ui/src/plugins/register/pagerduty/config.tsx
index 5d7ef4ed7..20f193c78 100644
--- a/config-ui/src/plugins/register/pagerduty/config.tsx
+++ b/config-ui/src/plugins/register/pagerduty/config.tsx
@@ -25,7 +25,7 @@ export const PagerDutyConfig: IPluginConfig = {
   plugin: 'pagerduty',
   name: 'PagerDuty',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 10,
+  sort: 11,
   connection: {
     docLink: DOC_URL.PLUGIN.PAGERDUTY.BASIS,
     initialValues: {
diff --git a/config-ui/src/plugins/register/q-dev/config.tsx b/config-ui/src/plugins/register/q-dev/config.tsx
index 836d6417d..6516e74e0 100644
--- a/config-ui/src/plugins/register/q-dev/config.tsx
+++ b/config-ui/src/plugins/register/q-dev/config.tsx
@@ -26,7 +26,7 @@ export const QDevConfig: IPluginConfig = {
   plugin: 'q_dev',
   name: 'Q Developer',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 20,
+  sort: 12,
   connection: {
     docLink: 'https://devlake.apache.org/docs/UserManual/plugins/qdev',
     initialValues: {
diff --git a/config-ui/src/plugins/register/slack/config.tsx b/config-ui/src/plugins/register/slack/config.tsx
index 566cad726..5f6dad2be 100644
--- a/config-ui/src/plugins/register/slack/config.tsx
+++ b/config-ui/src/plugins/register/slack/config.tsx
@@ -25,7 +25,7 @@ export const SlackConfig: IPluginConfig = {
   plugin: 'slack',
   name: 'Slack',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 12,
+  sort: 13,
   connection: {
     docLink: DOC_URL.PLUGIN.SLACK?.BASIS,
     initialValues: {
diff --git a/config-ui/src/plugins/register/sonarqube/config.tsx b/config-ui/src/plugins/register/sonarqube/config.tsx
index 60d1d4837..5da394d20 100644
--- a/config-ui/src/plugins/register/sonarqube/config.tsx
+++ b/config-ui/src/plugins/register/sonarqube/config.tsx
@@ -27,7 +27,7 @@ export const SonarQubeConfig: IPluginConfig = {
   plugin: 'sonarqube',
   name: 'SonarQube',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 11,
+  sort: 14,
   connection: {
     docLink: DOC_URL.PLUGIN.SONARQUBE.BASIS,
     initialValues: {
diff --git a/config-ui/src/plugins/register/tapd/config.tsx b/config-ui/src/plugins/register/tapd/config.tsx
index cdce22db3..abe8724f1 100644
--- a/config-ui/src/plugins/register/tapd/config.tsx
+++ b/config-ui/src/plugins/register/tapd/config.tsx
@@ -27,7 +27,7 @@ export const TAPDConfig: IPluginConfig = {
   plugin: 'tapd',
   name: 'TAPD',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 12,
+  sort: 15,
   connection: {
     docLink: DOC_URL.PLUGIN.TAPD.BASIS,
     initialValues: {
diff --git a/config-ui/src/plugins/register/testmo/config.tsx b/config-ui/src/plugins/register/testmo/config.tsx
index b830fa334..378ef4fa7 100644
--- a/config-ui/src/plugins/register/testmo/config.tsx
+++ b/config-ui/src/plugins/register/testmo/config.tsx
@@ -25,7 +25,7 @@ export const TestmoConfig: IPluginConfig = {
   name: 'Testmo',
   icon: ({ color }) => <Icon fill={color} />,
   isBeta: true,
-  sort: 160,
+  sort: 17,
   connection: {
     docLink: 'https://devlake.apache.org/docs/Configuration/Testmo',
     initialValues: {
diff --git a/config-ui/src/plugins/register/zentao/config.tsx b/config-ui/src/plugins/register/zentao/config.tsx
index 03234b511..5cc8be795 100644
--- a/config-ui/src/plugins/register/zentao/config.tsx
+++ b/config-ui/src/plugins/register/zentao/config.tsx
@@ -26,7 +26,7 @@ export const ZenTaoConfig: IPluginConfig = {
   plugin: 'zentao',
   name: 'ZenTao',
   icon: ({ color }) => <Icon fill={color} />,
-  sort: 13,
+  sort: 18,
   connection: {
     docLink: DOC_URL.PLUGIN.ZENTAO.BASIS,
     fields: [
diff --git a/config-ui/src/plugins/utils.ts b/config-ui/src/plugins/utils.ts
index a290e6952..c008f4b4d 100644
--- a/config-ui/src/plugins/utils.ts
+++ b/config-ui/src/plugins/utils.ts
@@ -39,6 +39,8 @@ export const getPluginScopeId = (plugin: string, scope: any) => {
       return `${scope.projectKey}`;
     case 'bamboo':
       return `${scope.planKey}`;
+    case 'argocd':
+      return `${scope.name}`;
     default:
       return `${scope.id}`;
   }
diff --git a/config-ui/src/routes/pipeline/components/task.tsx b/config-ui/src/routes/pipeline/components/task.tsx
index d4a012a11..73cfe532c 100644
--- a/config-ui/src/routes/pipeline/components/task.tsx
+++ b/config-ui/src/routes/pipeline/components/task.tsx
@@ -89,6 +89,9 @@ export const PipelineTask = ({ task }: Props) => {
       case ['azuredevops_go'].includes(config.plugin):
         name = `ado:${options.name}`;
         break;
+      case ['argocd'].includes(config.plugin):
+        name = `${name}:${options.ApplicationName}`;
+        break;
     }
 
     return [config.icon, name];
diff --git a/grafana/dashboards/ArgoCD.json b/grafana/dashboards/ArgoCD.json
new file mode 100644
index 000000000..1086d47a6
--- /dev/null
+++ b/grafana/dashboards/ArgoCD.json
@@ -0,0 +1,879 @@
+{
+  "annotations": {
+    "list": [
+      {
+        "builtIn": 1,
+        "datasource": {
+          "type": "datasource",
+          "uid": "grafana"
+        },
+        "enable": true,
+        "hide": true,
+        "iconColor": "rgba(0, 211, 255, 1)",
+        "name": "Annotations & Alerts",
+        "type": "dashboard"
+      }
+    ]
+  },
+  "editable": true,
+  "fiscalYearStartMonth": 0,
+  "graphTooltip": 0,
+  "id": null,
+  "links": [],
+  "liveNow": false,
+  "panels": [
+    {
+      "datasource": {
+        "type": "datasource",
+        "uid": "grafana"
+      },
+      "gridPos": {
+        "h": 3,
+        "w": 24,
+        "x": 0,
+        "y": 0
+      },
+      "id": 1,
+      "links": [
+        {
+          "targetBlank": true,
+          "title": "ArgoCD",
+          "url": "https://devlake.apache.org/docs/Plugins/argocd"
+        }
+      ],
+      "options": {
+        "code": {
+          "language": "plaintext",
+          "showLineNumbers": false,
+          "showMiniMap": false
+        },
+        "content": "- Use Cases: Track ArgoCD deployment activity, measure success rates, monitor environments, and spot slow deployments.\n- Data Source Required: ArgoCD plugin (deployments mapped into `cicd_deployments`).\n- Filters: Use the *Application* templating variable to focus on specific ArgoCD applications.",
+        "mode": "markdown"
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": {
+            "type": "datasource",
+            "uid": "grafana"
+          },
+          "queryType": "randomWalk",
+          "refId": "A"
+        }
+      ],
+      "title": "Dashboard Introduction",
+      "type": "text"
+    },
+    {
+      "datasource": "mysql",
+      "fieldConfig": {
+        "defaults": {
+          "mappings": [],
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          }
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 6,
+        "w": 6,
+        "x": 0,
+        "y": 3
+      },
+      "id": 2,
+      "options": {
+        "colorMode": "value",
+        "graphMode": "area",
+        "justifyMode": "auto",
+        "orientation": "auto",
+        "reduceOptions": {
+          "calcs": [
+            "lastNotNull"
+          ],
+          "fields": "",
+          "values": false
+        },
+        "text": {},
+        "textMode": "auto"
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "SELECT\n  count(distinct id)\nFROM \n  cicd_deployments\nWHERE\n  $__timeFilter(created_date)\n  and (\n    '${application_id:raw}' = ''\n    OR '${application_id:raw}' = '$__all'\n    OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n  )",
+          "refId": "A"
+        }
+      ],
+      "title": "1.1 Total Deployments",
+      "type": "stat"
+    },
+    {
+      "datasource": "mysql",
+      "fieldConfig": {
+        "defaults": {
+          "mappings": [],
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          }
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 6,
+        "w": 6,
+        "x": 6,
+        "y": 3
+      },
+      "id": 3,
+      "options": {
+        "colorMode": "value",
+        "graphMode": "area",
+        "justifyMode": "auto",
+        "orientation": "auto",
+        "reduceOptions": {
+          "calcs": [
+            "lastNotNull"
+          ],
+          "fields": "",
+          "values": false
+        },
+        "text": {},
+        "textMode": "auto"
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "SELECT\n  count(distinct case when result = 'SUCCESS' then id else null end)\nFROM \n  cicd_deployments\nWHERE\n  $__timeFilter(created_date)\n  and (\n    '${application_id:raw}' = ''\n    OR '${application_id:raw}' = '$__all'\n    OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n  )",
+          "refId": "A"
+        }
+      ],
+      "title": "1.2 Successful Deployments",
+      "type": "stat"
+    },
+    {
+      "datasource": "mysql",
+      "description": "Successful deployments / Total deployments",
+      "fieldConfig": {
+        "defaults": {
+          "mappings": [],
+          "max": 1,
+          "min": 0,
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "blue",
+                "value": null
+              }
+            ]
+          },
+          "unit": "percentunit"
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 6,
+        "w": 6,
+        "x": 12,
+        "y": 3
+      },
+      "id": 4,
+      "options": {
+        "colorMode": "value",
+        "graphMode": "area",
+        "justifyMode": "auto",
+        "orientation": "auto",
+        "reduceOptions": {
+          "calcs": [
+            "lastNotNull"
+          ],
+          "fields": "",
+          "values": false
+        },
+        "text": {},
+        "textMode": "auto"
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "SELECT\n  1.0 * count(case when result = 'SUCCESS' then id else null end)/nullif(count(distinct id), 0)\nFROM cicd_deployments\nWHERE\n  $__timeFilter(created_date)\n  and (\n    '${application_id:raw}' = ''\n    OR '${application_id:raw}' = '$__all'\n    OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n  )",
+          "refId": "A"
+        }
+      ],
+      "title": "1.3 Deployment Success Rate",
+      "type": "stat"
+    },
+    {
+      "datasource": "mysql",
+      "fieldConfig": {
+        "defaults": {
+          "color": {
+            "mode": "palette-classic"
+          },
+          "mappings": [],
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          }
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 6,
+        "w": 6,
+        "x": 18,
+        "y": 3
+      },
+      "id": 5,
+      "options": {
+        "displayLabels": [
+          "name",
+          "percent"
+        ],
+        "legend": {
+          "calcs": [],
+          "displayMode": "list",
+          "placement": "right",
+          "showLegend": true
+        },
+        "pieType": "pie",
+        "reduceOptions": {
+          "calcs": [
+            "sum"
+          ],
+          "fields": "",
+          "values": false
+        },
+        "tooltip": {
+          "mode": "single",
+          "sort": "none"
+        }
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "SELECT\n  result,\n  count(distinct id) as deployment_count\nFROM cicd_deployments\nWHERE\n  $__timeFilter(created_date)\n  and (\n    '${application_id:raw}' = ''\n    OR '${application_id:raw}' = '$__all'\n    OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n  )\nGROUP BY 1\nORDER BY 2 desc",
+          "refId": "A"
+        }
+      ],
+      "title": "1.4 Deployment Result Distribution",
+      "type": "piechart"
+    },
+    {
+      "collapsed": false,
+      "id": 6,
+      "panels": [],
+      "title": "2. Deployment Trends",
+      "type": "row"
+    },
+    {
+      "datasource": "mysql",
+      "fieldConfig": {
+        "defaults": {
+          "mappings": [],
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          }
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 8,
+        "w": 8,
+        "x": 0,
+        "y": 9
+      },
+      "id": 7,
+      "options": {
+        "barRadius": 0,
+        "barWidth": 0.5,
+        "fullHighlight": false,
+        "groupWidth": 0.7,
+        "legend": {
+          "calcs": [],
+          "displayMode": "list",
+          "placement": "bottom",
+          "showLegend": true
+        },
+        "orientation": "auto",
+        "showValue": "auto",
+        "stacking": "none",
+        "text": {
+          "valueSize": 12
+        },
+        "tooltip": {
+          "mode": "single",
+          "sort": "none"
+        },
+        "xTickLabelRotation": 0,
+        "xTickLabelSpacing": 0
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "WITH _deployments AS (\n  SELECT\n    DATE_ADD(date(created_date), INTERVAL -DAYOFMONTH(date(created_date))+1 DAY) AS time,\n    count(distinct id) AS deployment_count\n  FROM cicd_deployments\n  WHERE\n    $__timeFilter(created_date)\n    and (\n      '${application_id:raw}' = ''\n      OR '${application_id:raw}' = '$__all'\n      OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n    )\n  GROUP BY 1\n)\nSELECT\n  date_format(time,'%M %Y') AS month,\n  depl [...]
+          "refId": "A"
+        }
+      ],
+      "title": "2.1 Deployments per Month",
+      "type": "barchart"
+    },
+    {
+      "datasource": "mysql",
+      "fieldConfig": {
+        "defaults": {
+          "mappings": [],
+          "max": 1,
+          "min": 0,
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "blue",
+                "value": null
+              }
+            ]
+          }
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 8,
+        "w": 8,
+        "x": 8,
+        "y": 9
+      },
+      "id": 8,
+      "options": {
+        "barRadius": 0,
+        "barWidth": 0.5,
+        "fullHighlight": false,
+        "groupWidth": 0.7,
+        "legend": {
+          "calcs": [
+            "mean"
+          ],
+          "displayMode": "list",
+          "placement": "bottom",
+          "showLegend": true
+        },
+        "orientation": "auto",
+        "showValue": "auto",
+        "stacking": "none",
+        "text": {
+          "valueSize": 12
+        },
+        "tooltip": {
+          "mode": "single",
+          "sort": "none"
+        },
+        "xTickLabelRotation": 0,
+        "xTickLabelSpacing": 0
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "WITH _deployment_success_rate AS (\n  SELECT\n    DATE_ADD(date(created_date), INTERVAL -DAYOFMONTH(date(created_date))+1 DAY) AS time,\n    result,\n    id\n  FROM cicd_deployments\n  WHERE\n    $__timeFilter(created_date)\n    and (\n      '${application_id:raw}' = ''\n      OR '${application_id:raw}' = '$__all'\n      OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n    )\n  GROUP BY 1,2,3\n)\nSELECT\n  date_format(time,'%M %Y') AS month,\n  1.0 * sum(c [...]
+          "refId": "A"
+        }
+      ],
+      "title": "2.2 Deployment Success Rate by Month",
+      "type": "barchart"
+    },
+    {
+      "datasource": "mysql",
+      "fieldConfig": {
+        "defaults": {
+          "mappings": [],
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          }
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 8,
+        "w": 8,
+        "x": 16,
+        "y": 9
+      },
+      "id": 15,
+      "options": {
+        "barRadius": 0,
+        "barWidth": 0.5,
+        "fullHighlight": false,
+        "groupWidth": 0.7,
+        "legend": {
+          "calcs": [],
+          "displayMode": "list",
+          "placement": "bottom",
+          "showLegend": true
+        },
+        "orientation": "auto",
+        "showValue": "auto",
+        "stacking": "none",
+        "text": {
+          "valueSize": 12
+        },
+        "tooltip": {
+          "mode": "single",
+          "sort": "none"
+        },
+        "xTickLabelRotation": 0,
+        "xTickLabelSpacing": 0
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "SELECT\n  environment,\n  count(distinct id) as deployment_count\nFROM cicd_deployments\nWHERE\n  $__timeFilter(created_date)\n  and (\n    '${application_id:raw}' = ''\n    OR '${application_id:raw}' = '$__all'\n    OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n  )\nGROUP BY 1\nORDER BY 2 desc",
+          "refId": "A"
+        }
+      ],
+      "title": "2.3 Deployments by Environment",
+      "type": "barchart"
+    },
+    {
+      "collapsed": false,
+      "id": 9,
+      "panels": [],
+      "title": "3. Deployment Durations",
+      "type": "row"
+    },
+    {
+      "datasource": "mysql",
+      "description": "Average duration of deployments (minutes)",
+      "fieldConfig": {
+        "defaults": {
+          "mappings": [],
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          },
+          "unit": "m"
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 8,
+        "w": 6,
+        "x": 0,
+        "y": 17
+      },
+      "id": 10,
+      "options": {
+        "colorMode": "value",
+        "graphMode": "area",
+        "justifyMode": "auto",
+        "orientation": "auto",
+        "reduceOptions": {
+          "calcs": [
+            "lastNotNull"
+          ],
+          "fields": "",
+          "values": false
+        },
+        "text": {},
+        "textMode": "auto"
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "SELECT\n  avg(duration_sec/60)\nFROM cicd_deployments\nWHERE\n  $__timeFilter(created_date)\n  and (\n    '${application_id:raw}' = ''\n    OR '${application_id:raw}' = '$__all'\n    OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n  )\n  and duration_sec is not null",
+          "refId": "A"
+        }
+      ],
+      "title": "3.1 Mean Deployment Duration (Minutes)",
+      "type": "stat"
+    },
+    {
+      "datasource": "mysql",
+      "fieldConfig": {
+        "defaults": {
+          "mappings": [],
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          }
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 8,
+        "w": 9,
+        "x": 6,
+        "y": 17
+      },
+      "id": 11,
+      "options": {
+        "barRadius": 0,
+        "barWidth": 0.5,
+        "fullHighlight": false,
+        "groupWidth": 0.7,
+        "legend": {
+          "calcs": [],
+          "displayMode": "list",
+          "placement": "bottom",
+          "showLegend": true
+        },
+        "orientation": "auto",
+        "showValue": "auto",
+        "stacking": "none",
+        "text": {
+          "valueSize": 12
+        },
+        "tooltip": {
+          "mode": "single",
+          "sort": "none"
+        },
+        "xTickLabelRotation": 0,
+        "xTickLabelSpacing": 0
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "WITH _durations AS (\n  SELECT\n    DATE_ADD(date(created_date), INTERVAL -DAYOFMONTH(date(created_date))+1 DAY) AS time,\n    avg(duration_sec) AS mean_duration_sec\n  FROM cicd_deployments\n  WHERE\n    $__timeFilter(created_date)\n    and (\n      '${application_id:raw}' = ''\n      OR '${application_id:raw}' = '$__all'\n      OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n    )\n    and duration_sec is not null\n  GROUP BY 1\n)\nSELECT\n  date_format [...]
+          "refId": "A"
+        }
+      ],
+      "title": "3.2 Mean Deployment Duration by Month",
+      "type": "barchart"
+    },
+    {
+      "datasource": "mysql",
+      "fieldConfig": {
+        "defaults": {
+          "color": {
+            "mode": "thresholds"
+          },
+          "custom": {
+            "align": "auto",
+            "cellOptions": {
+              "type": "auto"
+            },
+            "inspect": false
+          },
+          "mappings": [],
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          }
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 8,
+        "w": 9,
+        "x": 15,
+        "y": 17
+      },
+      "id": 12,
+      "options": {
+        "cellHeight": "sm",
+        "footer": {
+          "countRows": false,
+          "fields": "",
+          "reducer": [
+            "sum"
+          ],
+          "show": false
+        },
+        "showHeader": true,
+        "sortBy": [
+          {
+            "desc": true,
+            "displayName": "duration_minutes"
+          }
+        ]
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "SELECT\n  name AS deployment_name,\n  display_title AS description,\n  environment,\n  result,\n  duration_sec/60 AS duration_minutes,\n  finished_date\nFROM cicd_deployments\nWHERE\n  $__timeFilter(created_date)\n  and (\n    '${application_id:raw}' = ''\n    OR '${application_id:raw}' = '$__all'\n    OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n  )\n  and duration_sec is not null\nORDER BY duration_sec DESC\nLIMIT 20",
+          "refId": "A"
+        }
+      ],
+      "title": "3.3 Top 20 Longest Deployments",
+      "type": "table"
+    },
+    {
+      "datasource": "mysql",
+      "description": "7-day rolling average of deployment duration (minutes)",
+      "fieldConfig": {
+        "defaults": {
+          "mappings": [],
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          },
+          "unit": "m"
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 7,
+        "w": 24,
+        "x": 0,
+        "y": 25
+      },
+      "id": 16,
+      "options": {
+        "legend": {
+          "calcs": [],
+          "displayMode": "list",
+          "placement": "bottom",
+          "showLegend": true
+        },
+        "tooltip": {
+          "mode": "single",
+          "sort": "none"
+        }
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "time_series",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "WITH daily AS (\n  SELECT\n    DATE(created_date) AS day_bucket,\n    avg(duration_sec/60) AS avg_duration_minutes\n  FROM cicd_deployments\n  WHERE\n    $__timeFilter(created_date)\n    and (\n      '${application_id:raw}' = ''\n      OR '${application_id:raw}' = '$__all'\n      OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n    )\n    and duration_sec is not null\n  GROUP BY 1\n),\nrolling AS (\n  SELECT\n    day_bucket,\n    avg(avg_duration_minutes)  [...]
+          "refId": "A"
+        }
+      ],
+      "title": "3.4 Rolling Deployment Duration (7-day Avg)",
+      "type": "timeseries"
+    },
+    {
+      "collapsed": false,
+      "id": 13,
+      "panels": [],
+      "title": "4. Deployment Details",
+      "type": "row"
+    },
+    {
+      "datasource": "mysql",
+      "fieldConfig": {
+        "defaults": {
+          "color": {
+            "mode": "thresholds"
+          },
+          "custom": {
+            "align": "auto",
+            "cellOptions": {
+              "type": "auto"
+            },
+            "inspect": false
+          },
+          "mappings": [],
+          "thresholds": {
+            "mode": "absolute",
+            "steps": [
+              {
+                "color": "green",
+                "value": null
+              }
+            ]
+          }
+        },
+        "overrides": []
+      },
+      "gridPos": {
+        "h": 9,
+        "w": 24,
+        "x": 0,
+        "y": 32
+      },
+      "id": 14,
+      "options": {
+        "cellHeight": "sm",
+        "footer": {
+          "countRows": false,
+          "fields": "",
+          "reducer": [
+            "sum"
+          ],
+          "show": false
+        },
+        "showHeader": true,
+        "sortBy": [
+          {
+            "desc": true,
+            "displayName": "created_date"
+          }
+        ]
+      },
+      "pluginVersion": "9.5.15",
+      "targets": [
+        {
+          "datasource": "mysql",
+          "editorMode": "code",
+          "format": "table",
+          "group": [],
+          "metricColumn": "none",
+          "rawQuery": true,
+          "rawSql": "SELECT\n  created_date,\n  name AS deployment_name,\n  environment,\n  result,\n  status,\n  display_title AS description,\n  finished_date\nFROM cicd_deployments\nWHERE\n  $__timeFilter(created_date)\n  and (\n    '${application_id:raw}' = ''\n    OR '${application_id:raw}' = '$__all'\n    OR FIND_IN_SET(cicd_scope_id, '${application_id:raw}') > 0\n  )\nORDER BY created_date DESC\nLIMIT 50",
+          "refId": "A"
+        }
+      ],
+      "title": "4.1 Recent Deployments",
+      "type": "table"
+    }
+  ],
+  "refresh": "",
+  "schemaVersion": 38,
+  "style": "dark",
+  "tags": [
+    "Data Source Dashboard",
+    "Stable Data Sources"
+  ],
+  "templating": {
+    "list": [
+      {
+        "current": {
+          "selected": true,
+          "text": [
+            "All"
+          ],
+          "value": [
+            "$__all"
+          ]
+        },
+        "datasource": "mysql",
+        "allValue": "$__all",
+        "definition": "select concat(name, '--', id) as text from cicd_scopes where id like 'argocd:ArgocdApplication:%'",
+        "hide": 0,
+        "includeAll": true,
+        "label": "Application",
+        "multi": true,
+        "name": "application_id",
+        "options": [],
+        "query": "select concat(name, '--', id) as text from cicd_scopes where id like 'argocd:ArgocdApplication:%'",
+        "refresh": 1,
+        "regex": "/^(?<text>.*)--(?<value>.*)$/",
+        "skipUrlSync": false,
+        "sort": 0,
+        "type": "query"
+      }
+    ]
+  },
+  "time": {
+    "from": "now-6M",
+    "to": "now"
+  },
+  "timepicker": {},
+  "timezone": "utc",
+  "title": "ArgoCD",
+  "uid": "Argocd001",
+  "version": 1,
+  "weekStart": ""
+}