aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-11-22 15:42:33 -0800
committerGravatar Tom Willemse2020-11-22 15:44:09 -0800
commit339103c4fed9718c23b9956c671294c032e62459 (patch)
treed72e762ecc98fb97e2de39d7e8293c836646b51b
parent4433e31e6dedee52ed3eb3cc0e007fc8464f5e4e (diff)
downloadnew-ryuslash.org-339103c4fed9718c23b9956c671294c032e62459.tar.gz
new-ryuslash.org-339103c4fed9718c23b9956c671294c032e62459.zip
Use the proper group when changing ownership
-rw-r--r--Jenkinsfile2
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'
}
}