website

The files for mattfehrenbach.xyz, a fork of a template.
git clone git://git.mattfehrenbach.xyz/website.git
Log | Files | Refs

commit 871245024c09007a4463f36304a1bcdc7f013d81
parent fdc39a7cbc2737904d82de4fafa0309259cf5e60
Author: Matt Fehrenbach <m.fehrenbach@pm.me>
Date:   Tue, 11 Aug 2020 17:44:27 +0100

Merge branch 'master' of git.mattfehrenbach.xyz:/var/www/git/website

Diffstat:
MJenkinsfile | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile @@ -4,15 +4,16 @@ pipeline { stage('Build') { steps { fileOperations([folderCreateOperation('build'), fileCopyOperation(excludes: '', flattenFiles: false, includes: 'index.html', renameFiles: false, sourceCaptureExpression: '', targetLocation: 'build', targetNameExpression: ''), folderCopyOperation(destinationFolderPath: 'build/assets', sourceFolderPath: 'assets'), folderCopyOperation(destinationFolderPath: 'build/images', sourceFolderPath: 'images'), fileZipOperation(folderPath: 'build', outputFolderPath: '')]) - archiveArtifacts(artifacts: 'build.zip', fingerprint: true, onlyIfSuccessful: true) + archiveArtifacts(artifacts: 'build.zip', fingerprint: true, onlyIfSuccessful: true) } } stage('Deploy') { steps { + sh 'whoami' fileOperations([folderCreateOperation('staging'), fileUnZipOperation(filePath: 'build.zip', targetLocation: 'staging')]) - sh "rm -r /var/www/mattfehrenbach/*" - fileOperations([folderCopyOperation(destinationFolderPath: '/var/www/mattfehrenbach', sourceFolderPath: 'staging/build')]) + sh 'rm -r /var/www/mattfehrenbach/*' + fileOperations([folderCopyOperation(destinationFolderPath: '/var/www/mattfehrenbach', sourceFolderPath: 'staging/build')]) } } @@ -23,4 +24,4 @@ pipeline { } } -} +}+ \ No newline at end of file