2024-09-29 01:10:32 -04:00
|
|
|
pipeline {
|
2024-10-11 08:23:19 -04:00
|
|
|
agent none
|
2024-09-29 01:10:32 -04:00
|
|
|
|
|
|
|
triggers {
|
|
|
|
cron("59 23 * * 1") // Clean up every monday
|
|
|
|
}
|
|
|
|
|
|
|
|
options {
|
|
|
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
2024-10-11 08:23:19 -04:00
|
|
|
stage('Clean docker on agent2') {
|
|
|
|
agent {
|
|
|
|
label 'agent2'
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh 'docker system prune -a -f'
|
|
|
|
sh 'docker network prune -f'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Clean docker on built-in-node') {
|
|
|
|
agent {
|
|
|
|
label 'built_in_node'
|
|
|
|
}
|
2024-09-29 01:10:32 -04:00
|
|
|
steps {
|
|
|
|
sh 'docker system prune -a -f'
|
|
|
|
sh 'docker network prune -f'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|