I would like to trigger snap rebuild from a cron job on my machine(for automatic rebuild, etc.), is it possible?
This exists.
Iāve used lp-build-snap before, but itās only for snaps that have been configured directly in launchpad, as opposed to via the /build page on snapcraft.io. It is super useful if you have configured them that way though, and gives you the flexibility you may need.
@toto may know if thereās any plans to expose the /build page over some kind of API. I donāt know.
I donāt think entire /build page API is needed, just an easy way to āTrigger new buildā. That could be implemented trough snapcraft command that should already have users credentials and list of snaps.
if [[ new-release ]]; then
snapcraft trigger <snap-name>
fi
hey @Lin-Buo-Ren ,
Sorry I must have missed the ping here.
So snapcraft.io doesnāt provides API for this. We actually use launchpad APIās to trigger new builds. I think for now this might be your best approach.