diff --git a/Jenkinsfile b/Jenkinsfile index be91a94..4d6c1a2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,5 @@ pipeline { - agent { - label 'agent2' - } + agent any triggers { cron("59 23 * * 1") // Clean up every monday @@ -12,6 +10,9 @@ pipeline { } stages { + agent { + label 'agent1' + } stage('Clean docker images') { steps { sh 'docker system prune -a -f'