Notes:
Pipeline schedules can be used to run pipelines only once, or for example every month on the 22nd for a certain branch.
In order to schedule a pipeline:
Attention: The pipelines won't be executed precisely, because schedules are handled by Sidekiq, which runs according to its interval. See advanced admin configuration for more information.
In the Schedules index page you can see a list of the pipelines that are scheduled to run. The next run is automatically calculated by the server GitLab is installed on.
To configure that a job can be executed only when the pipeline has been scheduled (or the opposite), you can use only and except configuration keywords.
job:on-schedule:
only:
- schedules
script:
- make world
job:
except:
- schedules
script:
- make build
Pipelines are executed as a user, who owns a schedule. This influences what projects and other resources the pipeline has access to. If a user does not own a pipeline, you can take ownership by clicking the Take ownership button. The next time a pipeline is scheduled, your credentials will be used.
Note: When the owner of the schedule doesn't have the ability to create pipelines anymore, due to e.g., being blocked or removed from the project, the schedule is deactivated. Another user can take ownership and activate it, so the schedule can be run again.
The pipelines won't be executed precisely, because schedules are handled by
Sidekiq, which runs according to its interval. For example, if you set a
schedule to create a pipeline every minute (* * * * *
) and the Sidekiq worker
runs on 00:00 and 12:00 every day (0 */12 * * *
), only 2 pipelines will be
created per day. To change the Sidekiq worker's frequency, you have to edit the
pipeline_schedule_worker_cron
value in your gitlab.rb
and restart GitLab.
For GitLab.com, you can check the dedicated settings page. If you
don't have admin access to the server, ask your administrator.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )