ci: default lesavka to quality-only runs and harden post archive
This commit is contained in:
parent
c1ec610771
commit
f760b0151c
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -6,7 +6,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
parameters {
|
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: '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')
|
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') {
|
stage('Build Images') {
|
||||||
|
when {
|
||||||
|
expression { return params.PUSH_IMAGES }
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'PUSH_IMAGES=${PUSH_IMAGES} scripts/ci/build-images.sh'
|
sh 'PUSH_IMAGES=${PUSH_IMAGES} scripts/ci/build-images.sh'
|
||||||
}
|
}
|
||||||
@ -81,7 +84,9 @@ pipeline {
|
|||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
archiveArtifacts artifacts: 'dist/*.tar.gz', fingerprint: true, allowEmptyArchive: true
|
node {
|
||||||
|
archiveArtifacts artifacts: 'dist/*.tar.gz', fingerprint: true, allowEmptyArchive: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user