Fix docker images cleaning
This commit is contained in:
parent
9d6250d57a
commit
9cf4d1c4f1
|
@ -3,7 +3,7 @@ pipeline {
|
||||||
label 'linux'
|
label 'linux'
|
||||||
}
|
}
|
||||||
|
|
||||||
trigger {
|
triggers {
|
||||||
cron('0 0 * * *')
|
cron('0 0 * * *')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -30,6 +30,15 @@ pipeline {
|
||||||
sh 'docker network prune -f'
|
sh 'docker network prune -f'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Clean docker images agent3') {
|
||||||
|
agent {
|
||||||
|
label 'agent3'
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
sh 'docker system prune -a -f'
|
||||||
|
sh 'docker network prune -f'
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue