website

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

commit f710488f39ddbd637778436d910bc4877880df8a
parent 4901931863136958954101ce5fda2d98f9b7137b
Author: matt <m.fehrenbach@pm.me>
Date:   Mon, 10 Aug 2020 23:53:06 +0100

Edited Jenkinsfile
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