How to build a "multipass" Snap with Jenkins?

My application builds fine locally within the repository, but when I’m trying to build it with Jenkins I run into some problems:

Launching a VM.
Sorry, home directories outside of /home are not currently supported. 
See for details.
An error occurred with the instance when trying to launch with 'multipass': returned exit code 1.
Ensure that 'multipass' is setup correctly and try again.

As far I see there are two different issues. One with home dirs and one with this multipass-thing. How do I “setup multipass correctly” ? I did run snapcraft in the repository and it installed some stuff, but I guess I should do that again in every repository clone?

My snapcraft.yaml is here:

Got this solved by moving Jenkins’ home dir to /home/jenkins + dealing with the permissions of the multipass socket.