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
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -3,11 +3,14 @@ pipeline {
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
steps {
|
||||||
sh 'make'
|
sh 'make'
|
||||||
stash includes: 'public/*', name: 'public_html'
|
stash includes: 'public/*', name: 'public_html'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
|
steps {
|
||||||
unstash 'public_html'
|
unstash 'public_html'
|
||||||
|
|
||||||
withCredentials([file(credentialsId: 'ryuslash.org-deploy-key', variable: 'KEY_FILE')]) {
|
withCredentials([file(credentialsId: 'ryuslash.org-deploy-key', variable: 'KEY_FILE')]) {
|
||||||
|
@ -15,4 +18,5 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue