2017-03-22 18:54:49 +00:00
|
|
|
FactoryGirl.define do
|
2017-05-07 22:35:56 +00:00
|
|
|
factory :ci_pipeline_schedule, class: Ci::PipelineSchedule do
|
2017-04-01 09:02:46 +00:00
|
|
|
cron '0 1 * * *'
|
2017-04-04 16:54:45 +00:00
|
|
|
cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE
|
2017-04-07 14:02:13 +00:00
|
|
|
ref 'master'
|
|
|
|
active true
|
2017-05-07 22:35:56 +00:00
|
|
|
description "pipeline schedule"
|
2017-08-02 19:55:11 +00:00
|
|
|
project
|
2017-04-07 12:47:29 +00:00
|
|
|
|
2017-04-04 12:22:12 +00:00
|
|
|
trait :nightly do
|
2017-03-22 18:54:49 +00:00
|
|
|
cron '0 1 * * *'
|
2017-04-04 16:54:45 +00:00
|
|
|
cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE
|
2017-03-22 18:54:49 +00:00
|
|
|
end
|
|
|
|
|
2017-04-04 12:22:12 +00:00
|
|
|
trait :weekly do
|
2017-03-30 18:16:24 +00:00
|
|
|
cron '0 1 * * 6'
|
2017-04-04 16:54:45 +00:00
|
|
|
cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE
|
2017-03-22 18:54:49 +00:00
|
|
|
end
|
|
|
|
|
2017-04-04 12:22:12 +00:00
|
|
|
trait :monthly do
|
2017-03-22 18:54:49 +00:00
|
|
|
cron '0 1 22 * *'
|
2017-04-04 16:54:45 +00:00
|
|
|
cron_timezone Gitlab::Ci::CronParser::VALID_SYNTAX_SAMPLE_TIME_ZONE
|
2017-03-22 18:54:49 +00:00
|
|
|
end
|
2017-05-07 22:35:56 +00:00
|
|
|
|
|
|
|
trait :inactive do
|
|
|
|
active false
|
|
|
|
end
|
2017-03-22 18:54:49 +00:00
|
|
|
end
|
|
|
|
end
|