2018-03-17 18:26:18 +05:30
|
|
|
FactoryBot.define do
|
2017-08-17 22:00:37 +05:30
|
|
|
factory :ci_pipeline_schedule, class: Ci::PipelineSchedule do
|
|
|
|
cron '0 1 * * *'
|
|
|
|
cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE
|
|
|
|
ref 'master'
|
|
|
|
active true
|
|
|
|
description "pipeline schedule"
|
2017-09-10 17:25:29 +05:30
|
|
|
project
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
trait :nightly do
|
|
|
|
cron '0 1 * * *'
|
|
|
|
cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :weekly do
|
|
|
|
cron '0 1 * * 6'
|
|
|
|
cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :monthly do
|
|
|
|
cron '0 1 22 * *'
|
|
|
|
cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE
|
|
|
|
end
|
|
|
|
|
|
|
|
trait :inactive do
|
|
|
|
active false
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|