From 3b3ffcf7662f076f0cba8354e3eafed55171d59b Mon Sep 17 00:00:00 2001 From: fYmious Date: Wed, 17 Dec 2025 10:11:13 +0300 Subject: [PATCH] upd --- Jenkinsfile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 33a4e3b..2431892 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,12 +1,19 @@ pipeline { agent any + environment { + DEPLOY_PATH = '/var/www/fymio.us' + } + stages { stage('Deploy') { steps { sh ''' - # Copy files to web directory - cp -r * /var/www/fymio.us/ + # Deploy to host via SSH + scp -o StrictHostKeyChecking=no index.html root@172.17.0.1:${DEPLOY_PATH}/ + + # If you have other files/folders later: + # scp -o StrictHostKeyChecking=no -r assets/ root@172.17.0.1:${DEPLOY_PATH}/ ''' } } @@ -14,7 +21,7 @@ pipeline { post { success { - echo 'Deployment successful!' + echo 'Deployment successful! Visit https://fymio.us' } failure { echo 'Deployment failed!'