Update Jenkinsfile
This commit is contained in:
parent
f7dcecba8b
commit
6a91f34b91
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -60,6 +60,7 @@ pipeline {
|
|||||||
git clone https://${GIT_USERNAME}:${GIT_PASSWORD}@${BACKEND_TEST_REPO} ${BACKEND_TEST_ENV}/${BACKEND_TEST_DIR}
|
git clone https://${GIT_USERNAME}:${GIT_PASSWORD}@${BACKEND_TEST_REPO} ${BACKEND_TEST_ENV}/${BACKEND_TEST_DIR}
|
||||||
cd ${BACKEND_TEST_ENV}/${BACKEND_TEST_DIR}
|
cd ${BACKEND_TEST_ENV}/${BACKEND_TEST_DIR}
|
||||||
chmod +x run_tests.sh
|
chmod +x run_tests.sh
|
||||||
|
source ${BACKEND_TEST_ENV}/venv/bin/activate
|
||||||
./run_tests.sh > backend_pytest_output.log 2>&1 || (
|
./run_tests.sh > backend_pytest_output.log 2>&1 || (
|
||||||
echo "Backend tests failed. Rolling back..." && \
|
echo "Backend tests failed. Rolling back..." && \
|
||||||
cd ${REMOTE_WORKSPACE}/spurrin-dev-ui && \
|
cd ${REMOTE_WORKSPACE}/spurrin-dev-ui && \
|
||||||
@ -74,6 +75,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
stage('Copy Test Log from Remote') {
|
stage('Copy Test Log from Remote') {
|
||||||
when {
|
when {
|
||||||
expression { currentBuild.result == null || currentBuild.result == 'FAILURE' }
|
expression { currentBuild.result == null || currentBuild.result == 'FAILURE' }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user