This commit is contained in:
2025-12-17 10:11:13 +03:00
parent e7ffa42d16
commit 3b3ffcf766

13
Jenkinsfile vendored
View File

@@ -1,12 +1,19 @@
pipeline { pipeline {
agent any agent any
environment {
DEPLOY_PATH = '/var/www/fymio.us'
}
stages { stages {
stage('Deploy') { stage('Deploy') {
steps { steps {
sh ''' sh '''
# Copy files to web directory # Deploy to host via SSH
cp -r * /var/www/fymio.us/ 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 { post {
success { success {
echo 'Deployment successful!' echo 'Deployment successful! Visit https://fymio.us'
} }
failure { failure {
echo 'Deployment failed!' echo 'Deployment failed!'