Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MigrateVersion = "v1.1.5_b"
Functions ¶
Types ¶
type PipelineCodeCache ¶
type PipelineCodeCache struct { ID uint `gorm:"primaryKey" json:"id"` WorkspaceId uint `gorm:"" json:"workspace_id"` // 缓存状态,open(开启)/close(关闭),当该代码空间下没有流水线代码触发配置时,状态为close,不需要缓存 Status string `gorm:"size:50" json:"status"` CommitCache interface{} `gorm:"type:json" json:"branch_cache"` CreateTime time.Time `gorm:"column:create_time;not null;autoCreateTime" json:"create_time"` UpdateTime time.Time `gorm:"column:update_time;not null;autoUpdateTime" json:"update_time"` }
PipelineCodeCache 缓存代码分支的最新commit
type PipelineTrigger ¶
type PipelineTrigger struct { ID uint `gorm:"primaryKey" json:"id"` PipelineId uint `gorm:"" json:"pipeline_id"` Type string `json:"type"` Config interface{} `gorm:"type:json" json:"config"` // 下一次触发时间 NextTriggerTime *time.Time `gorm:"" json:"next_trigger_time"` UpdateUser string `gorm:"size:50;not null" json:"update_user"` CreateTime time.Time `gorm:"not null;autoCreateTime" json:"create_time"` UpdateTime time.Time `gorm:"not null;autoUpdateTime" json:"update_time"` }
PipelineTrigger 流水线触发配置
type PipelineTriggerEvent ¶
type PipelineTriggerEvent struct { ID uint `gorm:"primaryKey" json:"id"` PipelineId uint `gorm:"" json:"pipeline_id"` From string `gorm:"size:50" json:"from"` TriggerId uint `gorm:"" json:"trigger_id"` Status string `gorm:"size:50;" json:"status"` // 事件触发的构建配置 EventConfig interface{} `gorm:"type:json" json:"event_config"` // 事件执行结果记录,触发成功/失败,以及失败原因 EventResult *utils.Response `gorm:"type:json" json:"event_result"` CreateTime time.Time `gorm:"not null;autoCreateTime" json:"create_time"` UpdateTime time.Time `gorm:"not null;autoUpdateTime" json:"update_time"` }
PipelineTriggerEvent 根据流水线触发配置,当触发条件达到时生成触发事件,根据事件生成新的流水线构建任务
Click to show internal directories.
Click to hide internal directories.