update Jenkinsfile
This commit is contained in:
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@@ -1,27 +1,16 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
environment {
|
|
||||||
DEPLOY_PATH = '/var/www/fymio.us'
|
|
||||||
}
|
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sshagent(['vps-ssh-key']) {
|
||||||
scp -o StrictHostKeyChecking=no index.html root@172.17.0.1:${DEPLOY_PATH}/
|
sh 'scp -o StrictHostKeyChecking=no index.html root@172.17.0.1:/var/www/fymio.us/'
|
||||||
scp -o StrictHostKeyChecking=no -r congrats/ root@172.17.0.1:${DEPLOY_PATH}/
|
}
|
||||||
'''
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
failure { echo 'Deployment failed!' }
|
||||||
echo 'Deployment successful! Visit https://fymio.us'
|
success { echo 'Deployment successful!' }
|
||||||
}
|
|
||||||
failure {
|
|
||||||
echo 'Deployment failed!'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user