Try using chown to fix file permissions
This commit is contained in:
parent
34dc13695e
commit
258d99a4cb
1 changed files with 4 additions and 0 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -15,6 +15,10 @@ pipeline {
|
|||
steps {
|
||||
sh 'cask'
|
||||
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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue