Dont clean the built in node

This commit is contained in:
retropikzel 2024-10-11 15:31:26 +03:00
parent 565cb9aa18
commit 2b4aa5e931
1 changed files with 4 additions and 14 deletions

18
Jenkinsfile vendored
View File

@ -1,5 +1,7 @@
pipeline {
agent none
agent {
label 'agent2'
}
triggers {
cron("59 23 * * 1") // Clean up every monday
@ -10,19 +12,7 @@ pipeline {
}
stages {
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'
}
stage('Clean docker images') {
steps {
sh 'docker system prune -a -f'
sh 'docker network prune -f'