Clean up docker stuff on built in node every monday

This commit is contained in:
retropikzel 2024-09-29 08:10:32 +03:00
commit 1633c782ba
2 changed files with 23 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.swp

22
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,22 @@
pipeline {
agent built_in_node
triggers {
cron("59 23 * * 1") // Clean up every monday
}
options {
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
}
stages {
stage('Clean docker images') {
steps {
sh 'docker system prune -a -f'
sh 'docker network prune -f'
}
}
}
}