aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-10-09 22:20:16 -0700
committerGravatar Tom Willemse2020-10-09 22:20:16 -0700
commit1fae33754e355f3d3d45176eb76bf6a0b1409e73 (patch)
treebb8fb5f4546291c810e8156583e7a4f1c0b0404f /Jenkinsfile
parent84725806f5c07d1ee93ecafe0d14f2ffe40b7236 (diff)
downloadnew-ryuslash.org-1fae33754e355f3d3d45176eb76bf6a0b1409e73.tar.gz
new-ryuslash.org-1fae33754e355f3d3d45176eb76bf6a0b1409e73.zip
Update the Jenkinsfile to use steps
The previous commit tried to change the Jenkinsfile to a declaractive, instead of scripted, pipeline, and this was missed.
Diffstat (limited to 'Jenkinsfile')
-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/"'
+ }
}
}
}