diff options
author | Tom Willemse | 2020-11-22 15:42:33 -0800 |
---|---|---|
committer | Tom Willemse | 2020-11-22 15:44:09 -0800 |
commit | 339103c4fed9718c23b9956c671294c032e62459 (patch) | |
tree | d72e762ecc98fb97e2de39d7e8293c836646b51b | |
parent | 4433e31e6dedee52ed3eb3cc0e007fc8464f5e4e (diff) | |
download | new-ryuslash.org-339103c4fed9718c23b9956c671294c032e62459.tar.gz new-ryuslash.org-339103c4fed9718c23b9956c671294c032e62459.zip |
Use the proper group when changing ownership
-rw-r--r-- | Jenkinsfile | 2 |
1 files changed, 1 insertions, 1 deletions
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' } } |