Try using chown to fix file permissions

This commit is contained in:
Tom Willemse 2020-10-09 23:57:49 -07:00
parent 34dc13695e
commit 258d99a4cb

4
Jenkinsfile vendored
View file

@ -15,6 +15,10 @@ pipeline {
steps { steps {
sh 'cask' sh 'cask'
sh 'make html' sh 'make html'
// Because we're running in root, the public/ directory
// isn't owned by the Jenkins user, meaning that
// unstashing in a different stage fails.
sh 'chown -R $(stat -c "%u" .):$(stat -c "%u" .) public'
stash includes: 'public/**', name: 'public_html' stash includes: 'public/**', name: 'public_html'
} }
} }