// vim: set ft=groovy sw=4 ts=4 sts=4 et : pipeline { agent { kubernetes { yamlFile 'ci/podTemplate.yaml' } } options { disableConcurrentBuilds() } environment { HOME = "${env.WORKSPACE}" } stages { stage('Build') { steps { container('zola') { sh 'zola build --base-url /' } container('python') { sh '. ci/build.sh' } } post { success { archiveArtifacts 'dustin.web.tar.xz' } } } stage('Publish') { when { branch 'master' } steps { container('rsync') { sshagent(['jenkins-web']) { sh '. ci/publish.sh' } } } } } }