-
- Downloads
Do not schedule pipelines if the user can't
When the owner of a pipelines schedule was either blocked or was removed from the project, the pipeline schedular would still schedule the pipeline. This would than fail however, given the user had no access to the project and it contents. However, a better way to handle it would be to not schedule it at all. Furthermore, from now on, such schedules will be deactivated so the schedule worker can ignore it on the next runs.
parent
e261b4b8
No related branches found
No related tags found
Showing
- app/models/ci/pipeline_schedule.rb 8 additions, 0 deletionsapp/models/ci/pipeline_schedule.rb
- app/workers/pipeline_schedule_worker.rb 7 additions, 1 deletionapp/workers/pipeline_schedule_worker.rb
- changelogs/unreleased/zj-pipeline-schedule-owner.yml 4 additions, 0 deletionschangelogs/unreleased/zj-pipeline-schedule-owner.yml
- doc/ci/pipeline_schedules.md 4 additions, 0 deletionsdoc/ci/pipeline_schedules.md
- spec/workers/pipeline_schedule_worker_spec.rb 32 additions, 19 deletionsspec/workers/pipeline_schedule_worker_spec.rb
Loading
Please register or sign in to comment