jenkins-automaintenance/Jenkinsfile

26 lines
461 B
Plaintext
Raw Normal View History

pipeline {
2024-11-16 04:19:10 -05:00
agent any
triggers {
2024-11-16 07:44:24 -05:00
cron("*/15 * * * *") // Clean up every 15 minutes
}
options {
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
}
stages {
2024-11-16 04:19:10 -05:00
agent {
label 'agent1'
}
2024-10-11 08:31:26 -04:00
stage('Clean docker images') {
steps {
sh 'docker system prune -a -f'
sh 'docker network prune -f'
}
}
}
}