update Jenkinsfile

This commit is contained in:
2026-02-28 08:55:36 +03:00
parent ccbedbfcc5
commit 3f843a90c5

21
Jenkinsfile vendored
View File

@@ -1,27 +1,16 @@
pipeline {
agent any
environment {
DEPLOY_PATH = '/var/www/fymio.us'
}
stages {
stage('Deploy') {
steps {
sh '''
scp -o StrictHostKeyChecking=no index.html root@172.17.0.1:${DEPLOY_PATH}/
scp -o StrictHostKeyChecking=no -r congrats/ root@172.17.0.1:${DEPLOY_PATH}/
'''
sshagent(['vps-ssh-key']) {
sh 'scp -o StrictHostKeyChecking=no index.html root@172.17.0.1:/var/www/fymio.us/'
}
}
}
}
post {
success {
echo 'Deployment successful! Visit https://fymio.us'
}
failure {
echo 'Deployment failed!'
}
failure { echo 'Deployment failed!' }
success { echo 'Deployment successful!' }
}
}