Some checks failed
dustin/chmod777/pipeline/head There was a failure building this commit
This is a very simple pipeline that consists of 3 steps: 1. Download the Hugo binary from Github (if necessary) 2. Run `hugo` 3. Publish the generated site with `rsync`
34 lines
531 B
Groovy
34 lines
531 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
options {
|
|
disableConcurrentBuilds()
|
|
}
|
|
|
|
triggers {
|
|
pollSCM ''
|
|
}
|
|
|
|
stages {
|
|
stage('Prepare') {
|
|
steps {
|
|
sh '. ci/prepare.sh'
|
|
}
|
|
}
|
|
|
|
stage('Build') {
|
|
steps {
|
|
sh '. ci/build.sh'
|
|
}
|
|
}
|
|
|
|
stage('Publish') {
|
|
steps {
|
|
sshagent(['jenkins-web']) {
|
|
sh '. ci/publish.sh'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|