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