aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-10-09 23:57:49 -0700
committerGravatar Tom Willemse2020-10-09 23:57:49 -0700
commit258d99a4cb1722a961240e10a2806aefccb95ede (patch)
tree5296eee850f945b59b2c238192afc7fdc24fd519
parent34dc13695e5ac86d4c974b8d57bec296b54b0cbd (diff)
downloadnew-ryuslash.org-258d99a4cb1722a961240e10a2806aefccb95ede.tar.gz
new-ryuslash.org-258d99a4cb1722a961240e10a2806aefccb95ede.zip
Try using chown to fix file permissions
-rw-r--r--Jenkinsfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 4d31891..3254083 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -15,6 +15,10 @@ pipeline {
steps {
sh 'cask'
sh 'make html'
+ // 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'
stash includes: 'public/**', name: 'public_html'
}
}