ci: publish tests-nightly log/xml for debug (#4384)

This commit is contained in:
Anton Iakimov 2023-11-30 12:09:16 +01:00 committed by GitHub
parent 384543d3a6
commit d2379aa129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 18 deletions

View File

@ -115,6 +115,11 @@ pipeline {
reportName: 'Reports',
reportTitles: 'Test Stats'
]
script {
if (isTestNightlyJob()) {
archiveArtifacts artifacts: '**/report.xml, **/test.log'
}
}
}
success { script { github.notifyPR(true) } }
failure { script { github.notifyPR(false) } }
@ -125,23 +130,10 @@ pipeline {
} // post
} // pipeline
def getDefaultUnitTestCount() {
if (env.JOB_BASE_NAME == 'tests-nightly') {
return '20'
}
return '1'
}
def isTestNightlyJob() { env.JOB_BASE_NAME == 'tests-nightly' }
def getDefaultUnitTestFailfast() {
if (env.JOB_BASE_NAME == 'tests-nightly') {
return false
}
return true
}
def getDefaultUnitTestCount() { isTestNightlyJob() ? '20' : '1' }
def getDefaultTimeout() {
if (env.JOB_BASE_NAME == 'tests-nightly') {
return 5*60
}
return 40
}
def getDefaultUnitTestFailfast() { isTestNightlyJob() ? false : true }
def getDefaultTimeout() { isTestNightlyJob() ? 5*60 : 40 }