Tom Willemse
1fae33754e
The previous commit tried to change the Jenkinsfile to a declaractive, instead of scripted, pipeline, and this was missed.
22 lines
576 B
Groovy
22 lines
576 B
Groovy
pipeline {
|
|
agent { dockerfile true }
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
sh 'make'
|
|
stash includes: 'public/*', name: 'public_html'
|
|
}
|
|
}
|
|
|
|
stage('Deploy') {
|
|
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/"'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|