From 1bf370c442c0aec0870300af38ee11c7c2ee321f Mon Sep 17 00:00:00 2001 From: justanwar <42809091+justanwar@users.noreply.github.com> Date: Wed, 15 Nov 2023 01:46:26 +0800 Subject: [PATCH] Store test logs after Jenkins run (#1349) * Store test logs after Jenkins run * Small typo * Add catchError * Archive unit tests' logs before running RPC tests --- Jenkinsfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 249f02679c..1e11bc84d1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,11 +32,19 @@ pipeline { } stage('Test') { steps { - dir('dist') { - sh 'make check' + catchError(buildResult: 'FAILURE', stageResult: 'FAILURE'){ + dir('dist') { + sh 'make check' + } } } } + stage('Archive unit tests logs') { + steps { + archiveArtifacts artifacts: 'dist/src/test-suite.log', + allowEmptyArchive: true + } + } stage('RPC Tests') { steps { dir('dist') {