TE-2851 Preserve stdout on Jenkins test failures
This commit is contained in:
@@ -12,16 +12,13 @@ def runPythonTests() {
|
||||
doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CloneOption', honorRefspec: true,
|
||||
noTags: true, shallow: true]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'jenkins-worker',
|
||||
refspec: git_refspec, url: "git@github.com:edx/${REPO_NAME}.git"]]]
|
||||
console_output = sh(returnStdout: true, script: 'bash scripts/all-tests.sh').trim()
|
||||
dir('stdout') {
|
||||
writeFile file: "${TEST_SUITE}-stdout.log", text: console_output
|
||||
}
|
||||
sh 'bash scripts/all-tests.sh'
|
||||
stash includes: 'reports/**/*coverage*', name: "${TEST_SUITE}-reports"
|
||||
}
|
||||
}
|
||||
|
||||
def pythonTestCleanup() {
|
||||
archiveArtifacts allowEmptyArchive: true, artifacts: 'reports/**/*,test_root/log/**/*.log,**/nosetests.xml,stdout/*.log,*.log'
|
||||
archiveArtifacts allowEmptyArchive: true, artifacts: 'reports/**/*,test_root/log/**/*.log,**/nosetests.xml,*.log'
|
||||
junit '**/nosetests.xml'
|
||||
sh '''source $HOME/edx-venv/bin/activate
|
||||
bash scripts/xdist/terminate_xdist_nodes.sh'''
|
||||
|
||||
Reference in New Issue
Block a user