diff --git a/Jenkinsfile b/Jenkinsfile index 691ebed..1989729 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,20 +3,20 @@ pipeline { agent none options { - + disableConcurrentBuilds(abortPrevious: true) - - buildDiscarder(logRotator(numToKeepStr: '1')) + + buildDiscarder(logRotator(numToKeepStr: '10')) } - + stages { - + stage('docker compose build') { - + agent { - - label "aventador" - + + label "sian" + } steps { @@ -24,19 +24,19 @@ pipeline { dir('.') { sh 'docker compose build' - - } + + } } - } + } stage('docker compose push') { agent { - - label "aventador" - + + label "sian" + } steps { @@ -44,32 +44,11 @@ pipeline { dir('.') { sh 'docker compose push' - - } + + } } - } - - stage('prune') { + } - agent { - - label "aventador" - - } - - steps { - - dir('.') { - - sh 'docker system prune -a -f' - - } - - } - - } - }} -