From 65cadff1907183212856cf60f6ae4a6191cee153 Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Thu, 16 Nov 2017 02:55:41 +0900 Subject: [PATCH] Avoid deactivation when pipeline schedules execute a commit includes `[ci skip]` --- app/workers/pipeline_schedule_worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/pipeline_schedule_worker.rb b/app/workers/pipeline_schedule_worker.rb index d7087f20dfc..7320db1065e 100644 --- a/app/workers/pipeline_schedule_worker.rb +++ b/app/workers/pipeline_schedule_worker.rb @@ -9,7 +9,7 @@ class PipelineScheduleWorker pipeline = Ci::CreatePipelineService.new(schedule.project, schedule.owner, ref: schedule.ref) - .execute(:schedule, save_on_errors: false, schedule: schedule) + .execute(:schedule, ignore_skip_ci: true, save_on_errors: false, schedule: schedule) schedule.deactivate! unless pipeline.persisted? rescue => e