Also clean the built in node
This commit is contained in:
parent
ae0673783c
commit
565cb9aa18
|
@ -1,7 +1,5 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent none
|
||||||
label 'agent2'
|
|
||||||
}
|
|
||||||
|
|
||||||
triggers {
|
triggers {
|
||||||
cron("59 23 * * 1") // Clean up every monday
|
cron("59 23 * * 1") // Clean up every monday
|
||||||
|
@ -12,7 +10,19 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Clean docker images') {
|
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'
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'docker system prune -a -f'
|
sh 'docker system prune -a -f'
|
||||||
sh 'docker network prune -f'
|
sh 'docker network prune -f'
|
||||||
|
|
Loading…
Reference in New Issue