commit 1633c782ba8517b5cd541e031d9cc9c6bd8e73cd Author: retropikzel Date: Sun Sep 29 08:10:32 2024 +0300 Clean up docker stuff on built in node every monday diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..1b19291 --- /dev/null +++ b/Jenkinsfile @@ -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' + } + } + } + +} +