DevTk.AI

Harness AI 流水线生成器

可视化构建集成 AI Agent 的 Harness CI/CD 流水线。一键生成支持 AIDA 的 YAML 配置。

pipeline:
  name: AIDA_Enabled_Pipeline
  identifier: AIDA_Enabled_Pipeline
  projectIdentifier: MyProject
  orgIdentifier: MyOrg
  stages:
    - stage:
        name: Build and Secure
        identifier: build_secure
        type: CI
        spec:
          execution:
            steps:
              - step:
                  type: AIAgent
                  name: AI CodeReview
                  identifier: ai_codereviewagent
                  spec:
                    agent: CodeReviewAgent
                    connectorRef: account.harness_ai_connector
                    
                    inputs:
                      targetBranch: <+trigger.targetBranch>
                      severityThreshold: High
              - step:
                  type: Run
                  name: Build Application
                  identifier: build_app
                  spec:
                    connectorRef: my_docker_connector
                    image: node:20
                    command: npm run build

Pro Tip: Integrating AIDA into your pipeline allows for automated remediation of deployment failures and AI-powered security scans in the inner loop.