Skip to content

whilein/gitlab-pipeline-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-pipeline-cleaner

Configuration

url

GitLab instance URL, i.e. https://gitlab.com or http://localhost

token

Private Token for GitLab API (which tokens have API access?)

options

Global options for all targets

Values:

  • keep_last - Keep at least some amount of pipelines
  • delete_older_than - Delete a pipelines older than some duration, for example 30d
  • skip_statuses - Skip a pipelines with specified statuses

targets

List of projects or groups to search for a pipelines

targets:project / targets:project:name

Project name

targets:group / targets:group:name

Group name

targets:group:recursive

Enable search in subgroups

targets:group:options

Optional overrides of global options

targets:group:archive_inclusion

Policy for archived projects

  • include - include archived projects (default)
  • exclude - exclude archived projects
  • only - only archived projects

targets:group:exclude

Exclude specified projects from searching (full path, i.e. mygroup/myprojecttoexclude)

Environment

CONFIG_PATH

Path to config file, by default config.yml.

Deploy

Docker

docker run --rm \
    -v './configuration:/configuration' \
    -e 'CONFIG_PATH=/configuration/config.yml' \
    whilein/gitlab-pipeline-cleaner

TODO

  • Child pipelines
  • Merge Requests

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks