diff --git a/staticweb/kde-org.pipeline b/staticweb/kde-org.pipeline index bf7a00d..0ae6f95 100644 --- a/staticweb/kde-org.pipeline +++ b/staticweb/kde-org.pipeline @@ -1,52 +1,52 @@ // Request a node to be allocated to us node( "SUSEWeb" ) { // 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() // Appstream Metadata Extractor checkout changelog: true, poll: true, scm: [ $class: 'GitSCM', branches: [[name: 'master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'extractor/']], userRemoteConfigs: [[url: "https://anongit.kde.org/websites/kde-org-applications-extractor"]] ] // Applications subsite code checkout changelog: true, poll: true, scm: [ $class: 'GitSCM', branches: [[name: 'master']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'site/']], userRemoteConfigs: [[url: "https://anongit.kde.org/websites/kde-org-applications"]] ] } // Let's build website now stage('Website build') { sh """ export LANG=en_US.UTF-8 cd extractor/ gem install --user -g Gemfile ruby appstream.rb ruby appstream_mkindex.rb cd ../ mv extractor/appdata-extensions/ site/ mv appdata/ icons/ thumbnails/ index.json site/ """ } // Deploy the website! stage('Publishing Website') { sh """ - rsync -Hav --delete --filter "protect config.php" -e "ssh -i $HOME/WebsitePublishing/website-upload.key" site/ sitedeployer@olios.kde.org:/srv/www/generated/www.kde.org/applications-ng/ + rsync -Hav --delete --filter "protect config.php" -e "ssh -i $HOME/WebsitePublishing/website-upload.key" site/ sitedeployer@olios.kde.org:/srv/www/generated/www.kde.org/applications/ """ } } } }