ci(jenkins): skip prep on test runs and retry flaky exec
This commit is contained in:
parent
9db28692bd
commit
1856e1b411
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -91,6 +91,9 @@ spec:
|
||||
}
|
||||
}
|
||||
stage('Prep toolchain') {
|
||||
when {
|
||||
expression { return params.PUBLISH_IMAGES }
|
||||
}
|
||||
steps {
|
||||
container('builder') {
|
||||
sh '''
|
||||
@ -105,6 +108,7 @@ spec:
|
||||
stage('Run quality gate') {
|
||||
steps {
|
||||
container('tester') {
|
||||
retry(2) {
|
||||
sh '''
|
||||
set -eu
|
||||
apt-get update >/dev/null
|
||||
@ -143,9 +147,11 @@ EOF
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Publish test metrics') {
|
||||
steps {
|
||||
container('tester') {
|
||||
retry(2) {
|
||||
sh '''
|
||||
set -eu
|
||||
apt-get update >/dev/null
|
||||
@ -217,6 +223,7 @@ METRICS
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Enforce quality gate') {
|
||||
steps {
|
||||
container('tester') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user