mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-21 20:25:45 +08:00
创建多条流水线、模板管理
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# parent_category :string(255)
|
||||
# login :string(255)
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
@@ -20,4 +21,7 @@ class Ci::Template < Ci::LocalBase
|
||||
validates :template_name, presence: {message: "模板名称不能为空"}
|
||||
validates :stage_type, presence: {message: "阶段类型不能为空"}
|
||||
validates :category, presence: {message: "模板类型不能为空"}
|
||||
|
||||
STAGE_TYPES = {init:'初始化',build:'编译构建',deploy:'部署',customize:'其他'}
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user