aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Jenkinsfile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 6543c4f..84615a6 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -3,15 +3,19 @@ pipeline {
stages {
stage('Build') {
- sh 'make'
- stash includes: 'public/*', name: 'public_html'
+ steps {
+ sh 'make'
+ stash includes: 'public/*', name: 'public_html'
+ }
}
stage('Deploy') {
- unstash 'public_html'
+ 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/"'
+ 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/"'
+ }
}
}
}