Miscellaneous#
This is a list of almost all available misc jobs that are currently run in our CI/CD pipelines.
Jobs overview#
remove_old_pipelines#
This job executes a custom script that removes outdated pipelines from project pipeline list.
- ARTIFACTS
Job doesn’t generate any artifacts.
ENVIRONMENT
Name |
Necessity |
Origin |
---|---|---|
BPROTO_CI_PRIVATE_API_TOKEN |
Mandatory |
|
BPROTO_CI_ENABLE_PIPELINES_CLEANUP |
Mandatory |
|
BPROTO_CI_GENERIC_PACKAGES_REGISTRY |
Mandatory |
|
CI_API_V4_URL |
Mandatory |
GitLab |
CI_PROJECT_ID |
Mandatory |
GitLab |
- IMAGES
- STAGE
- TRIGGERS
Job should be triggered only by a scheduler.
Scheduled job#
For example GitLab scheduled job can be configured like this:
Name |
Value |
---|---|
Description |
Clean all CI pipelines older than 1 week |
Interval Pattern |
Custom ( |
Cron timezone |
|
Select target branch or tag |
|
Variables |
|
Usage#
In order to use above CI jobs, you need to add the follow code to your .gitlab-ci.yml:
include:
- project: 'bproto/cicd'
ref: main
file:
- '/.gitlab/ci/external/lite.yml'