Use the proper group when changing ownership
This commit is contained in:
parent
4433e31e6d
commit
339103c4fe
1 changed files with 1 additions and 1 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue