From 1bf9e05de82aa843a0824de2d31ac3f9df9ba25c Mon Sep 17 00:00:00 2001 From: jassim Date: Fri, 13 Jun 2025 12:15:51 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b1644b7..09243d3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,13 +2,13 @@ pipeline { agent any environment { - SSH_CREDENTIALS = 'exceed-sleep' - REMOTE_SERVER = 'ubuntu@160.187.167.106' + SSH_CREDENTIALS = 'spurrin-backend-dev' + REMOTE_SERVER = 'ubuntu@160.187.166.67' REMOTE_WORKSPACE = '/var/www/html' GIT_CREDENTIALS = 'git-cred' BACKEND_TEST_DIR = 'Spurrin_Backend_Test' BACKEND_TEST_REPO = 'https://git.tech4biz.wiki/Tech4biz/Spurrin_Backend_Test.git' - BACKEND_TEST_ENV = '/home/ubuntu/test' + BACKEND_TEST_ENV = '/home/ubuntu/testenv' } stages { @@ -56,9 +56,9 @@ pipeline { sh """ ssh ${REMOTE_SERVER} ' set -e - rm -rf ${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} + rm -rf ${BACKEND_TEST_DIR} + git clone https://${GIT_USERNAME}:${GIT_PASSWORD}@${BACKEND_TEST_REPO} + cd ${BACKEND_TEST_DIR} chmod +x run_tests.sh source ${BACKEND_TEST_ENV}/venv/bin/activate ./run_tests.sh > backend_pytest_output.log 2>&1 || (