Use the proper group when changing ownership

This commit is contained in:
Tom Willemse 2020-11-22 15:42:33 -08:00
parent 4433e31e6d
commit 339103c4fe

2
Jenkinsfile vendored
View file

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