diff --git a/staticweb/pipeline-templates/cutehmi-kde-org.pipeline b/staticweb/pipeline-templates/cutehmi-kde-org.pipeline index 8a74596..f17287d 100644 --- a/staticweb/pipeline-templates/cutehmi-kde-org.pipeline +++ b/staticweb/pipeline-templates/cutehmi-kde-org.pipeline @@ -1,46 +1,46 @@ // Request a node to be allocated to us node( "StaticWeb" ) { // We want Timestamps on everything timestamps { // We want to catch any errors that occur to allow us to send out notifications (ie. emails) if needed catchError { // First Thing: Checkout Sources stage('Checkout Sources') { // Make sure we have a clean slate to begin with deleteDir() // Code checkout changelog: true, poll: true, scm: [ $class: 'GitSCM', branches: [[name: gitBranch]], userRemoteConfigs: [[url: repositoryUrl]] ] // Pre-Generated Docs to be included and published as well checkout changelog: true, poll: true, scm: [ $class: 'GitSCM', branches: [[name: 'master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'docs-source/']], userRemoteConfigs: [[url: 'https://anongit.kde.org/cutehmi-doxygen']] ] } // Let's build website now stage('Website build') { sh """ mv docs-source/docs/ docs/ export LANG=en_US.UTF-8 - bundle install + bundle install --path=vendor/ bundle exec jekyll build """ } // Deploy the website! stage('Publishing Website') { sh """ rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/website-upload.key" _site/ sitedeployer@olios.kde.org:${deploypath} rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/website-upload.key" _site/ sitedeployer@nicoda.kde.org:${deploypath} """ } } } }