ci: default lesavka to quality-only runs and harden post archive

This commit is contained in:
Brad Stein 2026-04-12 05:18:42 -03:00
parent c1ec610771
commit f760b0151c

9
Jenkinsfile vendored
View File

@ -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
}
}
}
}