From 1fae33754e355f3d3d45176eb76bf6a0b1409e73 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Fri, 9 Oct 2020 22:20:16 -0700 Subject: 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. --- Jenkinsfile | 14 +++++++++----- 1 file 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/"' + } } } } -- cgit v1.2.3-54-g00ecf