Jenkins with Snap Application

Hello All,

I’m trying to set up continuous deployment of a hugo site using Jenkins on an Ubuntu 16.04 server. I’ve installed hugo using snap as was recommended on their site. I’ve been able to get the site working on my main user account, but when I try to have Jenkins do it, it hits this error:

cannot create user data directory:

var/lib/jenkins/snap/hugo/1766: Permission denied

Which seems a little odd because the Jenkins has write permissions to that folder, if I’m reading the permissions correctly:

jenkins@computer: ~$ ls -al /var/lib/jenkins/snap/hugo/1766
total 8
drwxr-xr-x 2 jenkins jenkins 4096 May 11 01:33 .
drwxr-xr-x 4 jenkins jenkins 4096 May 11 01:33 ..

Am I missing something here? Are there other things I need to do?