diff --git a/Jenkinsfile b/Jenkinsfile index b78a819..9117a61 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,7 +22,7 @@ pipeline { // 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' + sh 'chown -R $(stat -c "%u" .):$(stat -c "%g" .) public' stash includes: 'public/**', name: 'public_html' } }