ci_: configure test jobs (#6008)

This commit is contained in:
Igor Sirotin 2024-10-31 10:50:58 +00:00 committed by GitHub
parent 5d4838a752
commit 7617bdd2ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 6 deletions

View File

@ -22,7 +22,7 @@ pipeline {
)
booleanParam(
name: 'UNIT_TEST_RERUN_FAILS',
defaultValue: isPRJob(),
defaultValue: !isNightlyJob(),
description: 'Should the job rerun failed tests?'
)
booleanParam(
@ -56,7 +56,7 @@ pipeline {
/* manage how many builds we keep */
buildDiscarder(logRotator(
numToKeepStr: getAmountToKeep(),
daysToKeepStr: '30',
daysToKeepStr: '-1',
artifactNumToKeepStr: getAmountToKeep(),
))
}
@ -254,4 +254,4 @@ def getDefaultUnitTestCount() { isNightlyJob() ? '20' : '1' }
def getDefaultTimeout() { isNightlyJob() ? 5*60 : 50 }
def getAmountToKeep() { isNightlyJob() ? '14' : isDevelopJob() ? '10' : '5' }
def getAmountToKeep() { isNightlyJob() ? '14' : isDevelopJob() ? '30' : '5' }

View File

@ -24,9 +24,9 @@ pipeline {
disableConcurrentBuilds()
/* manage how many builds we keep */
buildDiscarder(logRotator(
numToKeepStr: '5',
daysToKeepStr: '30',
artifactNumToKeepStr: '1',
numToKeepStr: getAmountToKeep(),
daysToKeepStr: '-1',
artifactNumToKeepStr: getAmountToKeep(),
))
}
@ -74,3 +74,7 @@ pipeline {
cleanup { sh 'make git-clean' }
} // post
} // pipeline
def isDevelopJob() { env.JOB_BASE_NAME == 'tests-rpc-develop' }
def getAmountToKeep() { isDevelopJob() ? '30' : '5' }