diff --git a/staticweb/pipeline-templates/static-git.pipeline b/staticweb/pipeline-templates/static-git.pipeline index f00ec55..357e47d 100644 --- a/staticweb/pipeline-templates/static-git.pipeline +++ b/staticweb/pipeline-templates/static-git.pipeline @@ -1,37 +1,37 @@ // 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 """ rm -rf .git/ if [ -f "composer.json" ]; then composer install fi """ } // 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} """ } } } }