From 6a91f34b91979ab0bfe931a87604e5075ce8abd0 Mon Sep 17 00:00:00 2001 From: jassim Date: Thu, 12 Jun 2025 14:40:28 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ebdc50b..b1644b7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,6 +60,7 @@ pipeline { git clone https://${GIT_USERNAME}:${GIT_PASSWORD}@${BACKEND_TEST_REPO} ${BACKEND_TEST_ENV}/${BACKEND_TEST_DIR} cd ${BACKEND_TEST_ENV}/${BACKEND_TEST_DIR} chmod +x run_tests.sh + source ${BACKEND_TEST_ENV}/venv/bin/activate ./run_tests.sh > backend_pytest_output.log 2>&1 || ( echo "Backend tests failed. Rolling back..." && \ cd ${REMOTE_WORKSPACE}/spurrin-dev-ui && \ @@ -74,6 +75,7 @@ pipeline { } } + stage('Copy Test Log from Remote') { when { expression { currentBuild.result == null || currentBuild.result == 'FAILURE' }