RuleGo RuleGo
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文

广告采用随机轮播方式显示 ❤️成为赞助商
  • Quick Start

  • Rule Chain

  • Standard Components

  • Extension Components

    • Extension Components Overview
    • filter

    • transform

    • external

    • ai

    • ci

      • gitClone
        • Configuration
        • Relation Type
        • Execution Result
      • gitCommit
      • gitCreateTag
      • gitPush
      • git log
      • Server Metrics Monitoring
    • IoT

  • Custom Components

  • Components marketplace

  • Visualization

  • AOP

  • Trigger

  • Advanced Topic

  • RuleGo-Server

  • FAQ

  • Endpoint Module

  • Support

目录

gitClone

ci/gitClone component: v0.23.0+ The git clone component is used to pull projects from git clone.

If the directory does not exist, clone the project; otherwise, pull (with forced overwrite).

Additional extension libraries are required: rulego-components-ci (opens new window)

# Configuration

Field Type Description Default Value
repository string Git repository URL, can use component configuration variables Obtained from the ref in metadata
directory string Local directory to clone into, can use component configuration variables Obtained from the workDir in metadata
reference string Full reference name of the branch or tag, can use component configuration variables refs/heads/main
authType string Authentication type, can be ssh, password, or token token
authUser string Path to SSH key file or username Empty
authPassword string Password or token Empty
proxyUrl string Proxy address Empty
proxyUsername string Proxy username Empty
proxyPassword string Proxy password Empty

# Relation Type

  • Success: On successful execution, the message is sent to the Success chain.
  • Failure: On failure, the message is sent to the Failure chain.

# Execution Result

  • This component does not change the value of msg.Data.
  • The project's save directory is obtained through the workDir key in msg.Metadata.
Edit this page on GitHub (opens new window)
Last Updated: 2025/04/02, 01:29:50
generate-image
gitCommit

← generate-image gitCommit→

Theme by Vdoing | Copyright © 2023-2025 RuleGo Team | Apache 2.0 License

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式