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' }