Help with cmake plugin

I have a project that can be packaged on my local ubuntu installation with no problems, I just run snapcraft and it’s packaged. But it doesn’t work on build.snapcraft.io and it tells me that in order to debug why it doesn’t work I should run in on my own PC, where it works.

The log is: https://pastebin.com/HWvY6tQw

What is wrong? How does it even work, is there any documentation? I was thinking it’s similar to travis, so that it downloads whole my repository to some temporary VM, runs the scripts there and nuke the VM, but it probably doesn’t even fetch whole repository? IDK really.

It would be also epic if I could configure it so that it builds snaps from some other branch than master, so that I don’t have clutter it with “test commits” where I am trying to get it working.

I’m not seeing the same error as you when running this locally using snapcraft cleanbuild in a clone of https://github.com/huggle/huggle3-qt-lx.

Here’s what I get:

Which matches the current errors on build.snapcraft.io:
https://build.snapcraft.io/user/huggle/huggle3-qt-lx

I don’t have time to debug further right now, but maybe someone more knowledgable about the cmake plugin will chime in.

It would be also epic if I could configure it so that it builds snaps from some other branch than master, so that I don’t have clutter it with “test commits” where I am trying to get it working.

We have plans for supporting pull requests down the road:

https://github.com/canonical-websites/build.snapcraft.io/issues/828

To avoid lots of test commits I’d suggest using snapcraft cleanbuild locally before committing.