meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
git:gitlab:maintenance [2020/07/09 09:52] niziakgit:gitlab:maintenance [2020/07/09 14:08] (current) niziak
Line 24: Line 24:
 ==== Not expired artifacts ==== ==== Not expired artifacts ====
  
-Using python tool: [[https://gitlab.com/haboustak/glartifacts|Glartifacts]]+  * Using python tool: [[https://gitlab.com/haboustak/glartifacts|Glartifacts]] 
 +  * Doc: [[https://glartifacts.readthedocs.io/en/latest/]]
  
 On Gitlab server: On Gitlab server:
 <code bash> <code bash>
-sudo apt-get install python-pip +sudo apt-get remove python-pip 
-pip install --upgrade pip+sudo apt-get install python3-pip 
 +pip3 install --upgrade pip
  
 sudo apt-get install postgresql postgresql-server-dev-all sudo apt-get install postgresql postgresql-server-dev-all
Line 42: Line 44:
 sudo pip install glartifacts sudo pip install glartifacts
 </code> </code>
 +
 +Usage:
 +<code bash>
 +glartifacts list
 +
 +glartifacts remove --strategy LASTGOOD_PIPELINE --dry-run group/subgroup/project
 +
 +glartifacts remove --strategy LASTGOOD_PIPELINE --all
 +
 +# by default Sidekiq task 'cronjob:expire_build_artifacts' is running every 50 minutes, force it now
 +# Go to https://gitlab.example.com/admin/background_jobs --> "Cron" tab and "enqueue Now"
 +# and check results:
 +glartifacts list
 +</code>
 +
 +==== Job logs ====
 +
 +Hundreds of jobs with build log size of 16MB can occupy gigabytes on disk.
 +[[https://docs.gitlab.com/ee/administration/job_artifacts.html#job-artifacts-using-too-much-disk-space|Job artifacts using too much disk space]]
 +