From 6034054e38c6696d39afc319b0ab1322a662d8d0 Mon Sep 17 00:00:00 2001 From: vriti Date: Mon, 9 Jun 2025 19:39:55 +0530 Subject: [PATCH] Jnkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 07ae9f9..4c969a9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,8 +5,8 @@ pipeline { SSH_CREDENTIALS = 'spurrin-backend-dev' GIT_CREDENTIALS = 'gitea-cred' REMOTE_SERVER = 'ubuntu@160.187.166.67' - REPO_HTTPS_URL = 'https://git.tech4biz.wiki/Tech4Biz-Services/spurrin-cleaned-node.git' - BRANCH = 'dev' + REPO_HTTPS_URL = 'https://git.tech4biz.wiki/rohit/spurrin-backend.git' + BRANCH = 'main' REMOTE_DIR = '/home/ubuntu/spurrin-cleaned-node' BACKUP_UPLOADS_DIR = '/home/ubuntu/uploads_backup' @@ -70,7 +70,7 @@ stage('Update Repo on Remote') { else echo "📥 Repo not found. Cloning fresh and restoring backup..." rm -rf ${REMOTE_DIR} - git clone -b ${BRANCH} https://${GIT_USER}:${GIT_PASS}@git.tech4biz.wiki/Tech4Biz-Services/spurrin-cleaned-node.git ${REMOTE_DIR} + git clone -b ${BRANCH} https://${GIT_USER}:${GIT_PASS}@https://git.tech4biz.wiki/rohit/spurrin-backend.git ${REMOTE_DIR} # Restore backup only on fresh clone if [ -d ${BACKUP_UPLOADS_DIR}/uploads ]; then