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.
This commit is contained in:
parent
84725806f5
commit
1fae33754e
1 changed files with 9 additions and 5 deletions
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
|
@ -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/"'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue