Clean up docker stuff on built in node every monday
This commit is contained in:
commit
1633c782ba
|
@ -0,0 +1 @@
|
|||
*.swp
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue