blob: 84615a67896bd80c578a477e10c9d5c2e1ebc40a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
pipeline {
agent { dockerfile true }
stages {
stage('Build') {
steps {
sh 'make'
stash includes: 'public/*', name: 'public_html'
}
}
stage('Deploy') {
steps {
unstash 'public_html'
withCredentials([file(credentialsId: 'ryuslash.org-deploy-key', variable: 'KEY_FILE')]) {
sh 'rsync -e "ssh -p 4511 -i $KEY_FILE" -v -c -r --delete public/ "site@ryuslash.org:public_html/"'
}
}
}
}
}
|