From 2b8427d4a1f51c473aad17f99d76a612b019a6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gyulai=20D=C3=A1niel?= Date: Thu, 5 Nov 2020 08:58:55 -0500 Subject: [PATCH] Restructure Jenkinsfile --- Jenkinsfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 56450a1..0e64602 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -77,12 +77,16 @@ spec: sh 'docker push docker.local/bme/covidok:latest' } } - container('helm'){ - post{ - always { - sh '/home/jenkins/agent/workspace/gitea-bme_covidok-backend_master/ci/cleanup.sh' - archiveArtifacts artifacts: '/home/jenkins/agent/workspace/gitea-bme_covidok-backend_master/covidok*tgz', followSymlinks: false, onlyIfSuccessful: true - } + stage('Archive chart'){ + archiveArtifacts artifacts: '/home/jenkins/agent/workspace/gitea-bme_covidok-backend_master/covidok*tgz', followSymlinks: false, onlyIfSuccessful: true + } + } + } + post { + always { + node(POD_LABEL) { + container('helm') { + sh '/home/jenkins/agent/workspace/gitea-bme_covidok-backend_master/ci/cleanup.sh' } } }