From e7baa2bbe6b669443a1198ae8159e7c2f17fcfb7 Mon Sep 17 00:00:00 2001 From: Software Shinobi Date: Wed, 28 May 2025 21:47:10 -0400 Subject: [PATCH] automated terminal push --- Jenkinsfile | 57 +++++++++++++++++------------------------------------ 1 file changed, 18 insertions(+), 39 deletions(-) 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' - - } - - } - - } - }} -