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 e85ee63a authored by Ben Cooksley's avatar Ben Cooksley

Make all the generic pipelines able to deploy to any server.

Introduce a job to deploy the Aether Drupal 7 theme to our Drupal server.
parent 8deb4434
......@@ -45,6 +45,7 @@
"branch" :"master",
"cron": "",
"type": "symfonyencore",
"server": "cdn",
"deploypath": "/srv/www/cdn.kde.org/aether-devel/"
},
{
......@@ -53,6 +54,7 @@
"branch" :"master",
"cron": "",
"type": "gruntjs",
"server": "cdn",
"deploypath": "/srv/www/cdn.kde.org/breeze-icons/"
},
{
......@@ -60,9 +62,19 @@
"repository": "websites/product-screenshots",
"branch" :"master",
"cron": "",
"type": "static-git-cdn",
"type": "static-git",
"server": "cdn",
"deploypath": "/srv/www/cdn.kde.org/screenshots/"
},
{
"name": "aether-drupal7-theme",
"repository": "websites/aether-drupal7",
"branch" :"master",
"cron": "",
"type": "static-git",
"server": "edulis",
"deploypath": "/srv/www/drupal7/sites/all/themes/aether/"
},
{
"name": "inqlude",
"repository": "websites/inqlude",
......
......@@ -28,7 +28,7 @@ timestamps {
// Deploy the website!
stage('Publishing to CDN') {
sh """
rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/cdn-upload.key" webfont/dist/ contentdeployer@milonia.kde.org:${deploypath}
rsync -Hav --delete -e "ssh -i ${deploykey}" webfont/dist/ ${deployuser}@${deployhost}:${deploypath}
"""
}
}
......
......@@ -27,7 +27,7 @@ timestamps {
// Deploy the website!
stage('Publishing Website') {
sh """
rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/website-upload.key" _site/ sitedeployer@nicoda.kde.org:${deploypath}
rsync -Hav --delete -e "ssh -i ${deploykey}" _site/ ${deployuser}@${deployhost}:${deploypath}
"""
}
}
......
......@@ -33,7 +33,7 @@ timestamps {
// Deploy the website!
stage('Publishing Website') {
sh """
rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/website-upload.key" _site/ sitedeployer@nicoda.kde.org:${deploypath}
rsync -Hav --delete -e "ssh -i ${deploykey}" _site/ ${deployuser}@${deployhost}:${deploypath}
"""
}
}
......
......@@ -32,7 +32,7 @@ timestamps {
// Deploy the website!
stage('Publishing Website') {
sh """
rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/website-upload.key" _site/ sitedeployer@nicoda.kde.org:${deploypath}
rsync -Hav --delete -e "ssh -i ${deploykey}" _site/ ${deployuser}@${deployhost}:${deploypath}
"""
}
}
......
......@@ -31,7 +31,7 @@ timestamps {
// Deploy the website!
stage('Publishing Website') {
sh """
rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/website-upload.key" _site/ sitedeployer@nicoda.kde.org:${deploypath}
rsync -Hav --delete -e "ssh -i ${deploykey}" _site/ ${deployuser}@${deployhost}:${deploypath}
"""
}
}
......
// 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('Content Build') {
sh """
rm -rf .git/
"""
}
// Deploy the website!
stage('Publishing Website') {
sh """
rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/cdn-upload.key" ./ contentdeployer@milonia.kde.org:${deploypath}
"""
}
}
}
}
......@@ -34,7 +34,7 @@ timestamps {
// Deploy the website!
stage('Publishing Website') {
sh """
rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/website-upload.key" ./ sitedeployer@nicoda.kde.org:${deploypath}
rsync -Hav --delete -e "ssh -i ${deploykey}" ./ ${deployuser}@${deployhost}:${deploypath}
"""
}
}
......
......@@ -29,7 +29,7 @@ timestamps {
// Deploy the website!
stage('Publishing to CDN') {
sh """
rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/cdn-upload.key" build/ contentdeployer@milonia.kde.org:${deploypath}
rsync -Hav --delete -e "ssh -i ${deploykey}" build/ ${deployuser}@${deployhost}:${deploypath}
"""
}
}
......
......@@ -27,7 +27,7 @@ timestamps {
// Deploy the website!
stage('Publishing Website') {
sh """
rsync -Hav --delete -e "ssh -i $HOME/WebsitePublishing/website-upload.key" dist/ sitedeployer@nicoda.kde.org:${deploypath}
rsync -Hav --delete -e "ssh -i ${deploykey}" dist/ ${deployuser}@${deployhost}:${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