Run daily. Dont stop on error

This commit is contained in:
retropikzel 2026-02-08 09:05:18 +02:00
parent 0fa23ac30c
commit bdf761ad95
1 changed files with 24 additions and 6 deletions

20
Jenkinsfile vendored
View File

@ -4,7 +4,7 @@ pipeline {
} }
triggers { triggers {
cron('0 0 * * *') cron('@daily')
} }
options { options {
@ -17,7 +17,10 @@ pipeline {
label 'agent1' label 'agent1'
} }
steps { steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh 'sh kill_days_containers.sh' sh 'sh kill_days_containers.sh'
sh 'docker system prune -a -f'
}
} }
} }
stage('Clean docker images agent2') { stage('Clean docker images agent2') {
@ -25,20 +28,35 @@ pipeline {
label 'agent2' label 'agent2'
} }
steps { steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh 'sh kill_days_containers.sh' sh 'sh kill_days_containers.sh'
sh 'docker system prune -a -f' sh 'docker system prune -a -f'
} }
} }
}
stage('Clean docker images agent3') { stage('Clean docker images agent3') {
agent { agent {
label 'agent3' label 'agent3'
} }
steps { steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh 'sh kill_days_containers.sh' sh 'sh kill_days_containers.sh'
sh 'docker system prune -a -f' sh 'docker system prune -a -f'
} }
} }
} }
stage('Clean docker images agent4') {
agent {
label 'agent3'
}
steps {
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh 'sh kill_days_containers.sh'
sh 'docker system prune -a -f'
}
}
}
}
} }