Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 58fc3512 authored by Bhushan Shah's avatar Bhushan Shah 📱

staticweb: introduce generic jekyll pipeline

parent d0252595
// 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: 'master']],
userRemoteConfigs: [[url: gitUrl]]
]
}
// Let's build website now
stage('Website build') {
sh """
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}
"""
}
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment