-
Notifications
You must be signed in to change notification settings - Fork 210
Expand file tree
/
Copy pathscheduled-pipeline.yml
More file actions
38 lines (34 loc) · 1.06 KB
/
Copy pathscheduled-pipeline.yml
File metadata and controls
38 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# SPDX-License-Identifier: BSD-2-Clause
# Copyright (c) 2025, Timo Pallach (timo@pallach.de).
# Scheduled pipeline components
# This file is included when CI_PIPELINE_SOURCE == "schedule"
scheduled-maintenance-job:
stage: prepare
script:
- echo "Running scheduled maintenance tasks"
- echo "Pipeline source: $CI_PIPELINE_SOURCE"
- echo "Schedule name: $SCHEDULE_NAME"
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
when: always
- when: never
daily-check-job:
stage: test
script:
- echo "Running daily health checks"
- echo "Pipeline source: $CI_PIPELINE_SOURCE"
- echo "Schedule name: $SCHEDULE_NAME"
rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULE_NAME == "Daily Check"
when: always
- when: never
weekly-cleanup-job:
stage: deploy
script:
- echo "Running weekly cleanup tasks"
- echo "Pipeline source: $CI_PIPELINE_SOURCE"
- echo "Schedule name: $SCHEDULE_NAME"
rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULE_NAME == "Weekly Cleanup"
when: always
- when: never