How to create automatic builds in LP of one repo (with snapcraft.yaml) when changed another repo (with build app source)?

Asked by Eldar Khayrullin

How to create automatic builds in LP of one repo (with snapcraft.yaml) when changed another repo (with build app source)?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
Eldar Khayrullin
Solved:
Last query:
Last reply:
Revision history for this message
Eldar Khayrullin (eldar) said :
#1

deleted

Revision history for this message
Colin Watson (cjwatson) said :
#2

Launchpad doesn't have a built-in facility for this, but snap objects are exported on the webservice API and have a requestBuild method, so it would be possible to hook up an external script to request the builds in response to a webhook or other post-receive hook dispatched by the app-source repository host in response to commits. See e.g.:

  https://help.launchpad.net/API/launchpadlib
  https://launchpad.net/+apidoc/devel.html#snap

Revision history for this message
Eldar Khayrullin (eldar) said :
#3

Thank you