diff options
author | 2020-10-09 22:20:16 -0700 | |
---|---|---|
committer | 2020-10-09 22:20:16 -0700 | |
commit | 1fae33754e355f3d3d45176eb76bf6a0b1409e73 (patch) | |
tree | bb8fb5f4546291c810e8156583e7a4f1c0b0404f /Jenkinsfile | |
parent | 84725806f5c07d1ee93ecafe0d14f2ffe40b7236 (diff) | |
download | new-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-- | Jenkinsfile | 14 |
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/"' + } } } } |