diff --git a/staticweb/custom-jobs.json b/staticweb/custom-jobs.json index a6e22d4..e779ddf 100644 --- a/staticweb/custom-jobs.json +++ b/staticweb/custom-jobs.json @@ -1,106 +1,106 @@ [ { "name": "openraster-org", "repository": "websites/openraster-org", "branch": "master", "cron": "", "type": "sphinx", "deploypath": "/srv/www/generated/openraster.org/" }, { "name": "docs-plasma-mobile-org", "repository": "websites/docs-plasma-mobile-org", "branch": "master", "cron": "", "type": "sphinx", "deploypath": "/srv/www/generated/docs.plasma-mobile.org/" }, { "name": "digikam-org", "repository": "websites/digikam-org", "branch": "master", "cron": "", "type": "hugo", "deploypath": "/srv/www/generated/digikam.org/" }, { "name": "staging-digikam-org", "repository": "websites/digikam-org", "branch": "dev", "cron": "", "type": "hugo", "deploypath": "/srv/www/generated/staging.digikam.org/" }, { "name": "akademy-schedule-kde-org", "repository": "websites/akademy-schedule-kde-org", "branch": "master", - "cron": "", - "type": "vue", + "cron": "@hourly", + "type": "akademy-schedule-kde-org", "deploypath": "/srv/www/generated/akademy-schedule.kde.org/" }, { "name": "cdn-kde-org-aether-devel", "repository": "websites/aether-sass", "branch" :"master", "cron": "", "type": "symfonyencore", "deploypath": "/srv/www/cdn.kde.org/aether-devel/" }, { "name": "inqlude", "repository": "websites/inqlude", "branch": "master", "cron": "", "type": "inqlude", "deploypath": "/srv/www/generated/inqlude.org/" }, { "name": "autoconfig-kde-org", "repository": "websites/autoconfig-kde-org", "branch": "master", "cron": "", "type": "autoconfig-kde-org", "deploypath": "/srv/www/generated/autoconfig.kde.org/" }, { "name": "docs-krita-org", "repository": "websites/docs-krita-org", "branch": "krita/4.2", "cron": "", "type": "krita-docs", "deploypath": "/srv/www/generated/docs.krita.org/" }, { "name": "hig-kde-org", "repository": "websites/hig-kde-org", "branch": "master", "cron": "", "type": "hig-kde-org", "deploypath": "/srv/www/generated/hig.kde.org/" }, { "name": "kde-org-applications", "repository": "websites/kde-org-applications", "branch" :"master", "cron": "@daily", "type": "kde-org", "deploypath": "/srv/www/generated/kde.org/applications/" }, { "name": "cutehmi-kde-org", "repository": "websites/cutehmi-kde-org", "branch": "master", "cron": "", "type": "cutehmi-kde-org", "deploypath": "/srv/www/generated/cutehmi.kde.org/" }, { "name": "plasma-mobile-org", "repository": "websites/plasma-mobile-org", "branch": "master", "cron": "", "type": "plasma-mobile-org", "deploypath": "/srv/www/generated/plasma-mobile.org/" } ] diff --git a/staticweb/pipeline-templates/akademy-schedule-kde-org.pipeline b/staticweb/pipeline-templates/akademy-schedule-kde-org.pipeline new file mode 100644 index 0000000..2da7738 --- /dev/null +++ b/staticweb/pipeline-templates/akademy-schedule-kde-org.pipeline @@ -0,0 +1,35 @@ +// 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]] + ] + } + + // Let's build website now + stage('Website build') { + sh """ + yarn install + yarn build + """ + } + + // Deploy the website! + stage('Publishing Website') { + sh """ + rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/website-upload.key" dist/ sitedeployer@nicoda.kde.org:${deploypath} + """ + } + } +} +}