I have Jenkins instance with a lot of jobs: maven, pipelines, multibranch, github projects etc. The jobs directory occupies space 369G. These are logs, artefacts, htmlreports, stashesh. Some files are a few hundred MB each, and since there are a lot of them, the whole thing takes up a lot.
As a jenkins administrator, what can I do about it? I have no influence on the jobs, each project manages them on its own.
First I would install Build Discarder plugin to configure that jobs that have no discarder configured still get old results deleted. Should be communicated to the project owners.
Then there are plugins that allow to store artifacts and stashes outside of JENKINS_HOME, e.g. Artifact Manager on S3, Artifact Manager Artifactory and Azure Artifact Manager
Yes, I’m using Build Discarder but some jobs use it, some no. Also there are several tasks that have a full history. For this reason, I could not unify everything with Configuration Slicing.
I will try the Artifact Manager Artifactory or any other, thank you for the suggestion.