From f760b0151cedf584a76487207f096201dc0ce6cc Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Sun, 12 Apr 2026 05:18:42 -0300 Subject: [PATCH] ci: default lesavka to quality-only runs and harden post archive --- Jenkinsfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 029fcde..7046a3a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,7 +6,7 @@ pipeline { } parameters { - booleanParam(name: 'PUSH_IMAGES', defaultValue: true, description: 'Push images to registry') + booleanParam(name: 'PUSH_IMAGES', defaultValue: false, description: 'Push images to registry (enable for release runs)') string(name: 'QUALITY_GATE_PUSHGATEWAY_URL', defaultValue: 'http://platform-quality-gateway.monitoring.svc.cluster.local:9091', description: 'Pushgateway base URL for quality gate metrics') string(name: 'REGISTRY_CREDENTIALS_ID', defaultValue: 'registry-bstein-dev', description: 'Jenkins credentials id for registry.bstein.dev') } @@ -73,6 +73,9 @@ pipeline { } stage('Build Images') { + when { + expression { return params.PUSH_IMAGES } + } steps { sh 'PUSH_IMAGES=${PUSH_IMAGES} scripts/ci/build-images.sh' } @@ -81,7 +84,9 @@ pipeline { post { always { - archiveArtifacts artifacts: 'dist/*.tar.gz', fingerprint: true, allowEmptyArchive: true + node { + archiveArtifacts artifacts: 'dist/*.tar.gz', fingerprint: true, allowEmptyArchive: true + } } } }