ci: retry nim_status_client build 3 times

This is a temporary stop-gap fix for a known linux build issue:
https://github.com/status-im/infra-ci/issues/88

Since currently this issue is very hard to reproduce and there is no
good solution in sight this should minimize the pain caused by it.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-06-26 17:27:02 +02:00
parent 1eeb1a34f9
commit a5ba253730
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 19 additions and 5 deletions

View File

@ -35,7 +35,7 @@ pipeline {
options {
timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 20, unit: 'MINUTES')
timeout(time: 25, unit: 'MINUTES')
/* manage how many builds we keep */
buildDiscarder(logRotator(
numToKeepStr: '10',
@ -78,6 +78,16 @@ pipeline {
}
}
stage('Client') {
steps { script {
/* Temporary hack-fix for failing Linux builds:
* https://github.com/status-im/infra-ci/issues/88 */
timeout(10) { retry(10) {
sh 'make nim_status_client'
} }
} }
}
stage('Package') {
steps { script {
linux.bundle('tgz-linux')

View File

@ -93,13 +93,17 @@ pipeline {
}
}
stage('build') {
stage('Client') {
environment {
GANACHE_NETWORK_RPC_URL = "http://localhost:${env.GANACHE_RPC_PORT}"
}
steps {
sh 'make'
}
steps { script {
/* Temporary hack-fix for failing Linux builds:
* https://github.com/status-im/infra-ci/issues/88 */
timeout(10) { retry(10) {
sh 'make nim_status_client'
} }
} }
}
stage('Containers') {