Trigger scheduled package rebuild automatically possible ?
Hi, In my home repo, I have a package that is build from git source, using a service. I'd like to have it rebuilt automatically server-side every few days. The equivalent of 'osc rebuild --all` but triggered server-side at a given schedule. Is it possible and if so how ?
Hello Michael, Am Mittwoch, 13. Juli 2022, 12:55:34 CEST schrieb Michael Pujos:
In my home repo, I have a package that is build from git source, using a service. I'd like to have it rebuilt automatically server-side every few days. The equivalent of 'osc rebuild --all` but triggered server-side at a given schedule.
Is it possible and if so how ?
you should be able to achieve this by creating a webhook/token and connect this with git (rebuild after every commit), or to trigger the token from a cron-job (e.g. nightly builds or 'every few days') https://openbuildservice.org/help/manuals/obs-user-guide/ cha.obs.source_service.html#sec.obs.sserv.token_usage HTH Axel
Thanks Axel for the pointer. This is a github project in heavy development, so rebuild on commit is not practical. I looked at the token documentation, but I think I'll just add on my dev machine a cron job running 'osc service remoterun' on the project, which will trigger the rebuild. On 7/13/22 13:24, Axel Braun wrote:
Hello Michael,
Am Mittwoch, 13. Juli 2022, 12:55:34 CEST schrieb Michael Pujos:
In my home repo, I have a package that is build from git source, using a service. I'd like to have it rebuilt automatically server-side every few days. The equivalent of 'osc rebuild --all` but triggered server-side at a given schedule.
Is it possible and if so how ? you should be able to achieve this by creating a webhook/token and connect this with git (rebuild after every commit), or to trigger the token from a cron-job (e.g. nightly builds or 'every few days')
https://openbuildservice.org/help/manuals/obs-user-guide/ cha.obs.source_service.html#sec.obs.sserv.token_usage
HTH Axel
On Jul 13 2022, Michael Pujos wrote:
I looked at the token documentation, but I think I'll just add on my dev machine a cron job running 'osc service remoterun' on the project, which will trigger the rebuild.
If you use a token, you don't have to authenticate each time. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."
On 7/13/22 16:01, Andreas Schwab wrote:
On Jul 13 2022, Michael Pujos wrote:
I looked at the token documentation, but I think I'll just add on my dev machine a cron job running 'osc service remoterun' on the project, which will trigger the rebuild. If you use a token, you don't have to authenticate each time.
Ah yes missed that. Noted !
On 2022-07-13 12 h 55, Michael Pujos wrote:
Hi,
In my home repo, I have a package that is build from git source, using a service. I'd like to have it rebuilt automatically server-side every few days. The equivalent of 'osc rebuild --all` but triggered server-side at a given schedule.
Is it possible and if so how ?
Hi Michael, you have written about rebuilding the package every few days and the reply from Axel Braun is a way to do it. If you want to rebuild the package through a tight integration with your SCM and a quick feedback loop directly in your SCM, you could use the SCM/CI Workflow Integration [1]. I know it's not exactly what you requested, but I'm sharing this in case it helps you. For example, you could rebuild a package for every change in a branch[2]. There are other documented use-cases. 1: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.scm_ci_work... 2: https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.scm_ci_work... -- Dany Marcoux Full Stack Web Developer - Open Build Service SUSE Software Solutions Germany GmbH dmarcoux@suse.com Frankenstraße 146 90461 Nürnberg Germany Geschäftsführer: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman (HRB 36809, AG Nürnberg) www.suse.com
participants (4)
-
Andreas Schwab
-
Axel Braun
-
Dany Marcoux
-
Michael Pujos