HI, I would like to set-up a nightly build for one package by pulling latest stuff from gitlab and running a build process. Is there a kind of cron available on OBS to trigger the service run? Or do I have to trigger this from external? Thanks Axel
On Mon, Jan 11, 2021 at 12:14 PM Axel Braun
HI,
I would like to set-up a nightly build for one package by pulling latest stuff from gitlab and running a build process.
Is there a kind of cron available on OBS to trigger the service run? Or do I have to trigger this from external?
Webhook trigger support for GitLab and Pagure was added in OBS 2.10[1], but I can't find specific documentation for it. [1]: https://openbuildservice.org/2019/07/04/release_of_obs_2.10/ -- 真実はいつも一つ!/ Always, there's only one truth!
On 1/11/21 6:14 PM, Axel Braun wrote:
I would like to set-up a nightly build for one package by pulling latest stuff from gitlab and running a build process.
Is there a kind of cron available on OBS to trigger the service run? Or do I have to trigger this from external?
To trigger it from external, e.g. after each push: osc service rr PROJECT PACKAGE At least I'm doing that for one of my packages like that. ;-) Have a nice day, Berny
On Jan 11 2021, Bernhard Voelker wrote:
On 1/11/21 6:14 PM, Axel Braun wrote:
I would like to set-up a nightly build for one package by pulling latest stuff from gitlab and running a build process.
Is there a kind of cron available on OBS to trigger the service run? Or do I have to trigger this from external?
To trigger it from external, e.g. after each push:
osc service rr PROJECT PACKAGE
At least I'm doing that for one of my packages like that. ;-)
If you create a token for it (osc token --create PROJECT PACKAGE), you don't need to authenticate. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."
Am Montag, 11. Januar 2021, 18:40:38 CET schrieb Andreas Schwab:
On Jan 11 2021, Bernhard Voelker wrote:
On 1/11/21 6:14 PM, Axel Braun wrote:
I would like to set-up a nightly build for one package by pulling latest stuff from gitlab and running a build process.
Is there a kind of cron available on OBS to trigger the service run? Or do I have to trigger this from external?
To trigger it from external, e.g. after each push: osc service rr PROJECT PACKAGE
At least I'm doing that for one of my packages like that. ;-)
If you create a token for it (osc token --create PROJECT PACKAGE), you don't need to authenticate.
Yes, that was the plan and using a webhook https://openbuildservice.org/help/manuals/obs-user-guide/ cha.obs.source_service.html#sec.obs.sserv.token_usage allows this to run *on each commit* But I did not find an option to run it just *once a day* on OBS. So I still have to go the cron-way on a different machine? Thanks Axel
Hey, On 1/12/21 4:16 PM, Axel Braun wrote:
But I did not find an option to run it just*once a day* on OBS. So I still have to go the cron-way on a different machine?
Yes, there is no cron like feature in OBS. You are supposed to do this somewhere else. Henne -- Henne Vogelsang http://www.opensuse.org Everybody has a plan, until they get hit. - Mike Tyson
On Dienstag, 12. Januar 2021, 16:22:12 CET Henne Vogelsang wrote:
Hey,
On 1/12/21 4:16 PM, Axel Braun wrote:
But I did not find an option to run it just*once a day* on OBS. So I still have to go the cron-way on a different machine?
Yes, there is no cron like feature in OBS. You are supposed to do this somewhere else.
somewhere else might be the action hooks in github/gitlab and so on:
https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.source_serv...
--
Adrian Schroeter
Am Dienstag, 12. Januar 2021, 16:26:00 CET schrieb Adrian Schröter:
On Dienstag, 12. Januar 2021, 16:22:12 CET Henne Vogelsang wrote:
Hey,
On 1/12/21 4:16 PM, Axel Braun wrote:
But I did not find an option to run it just*once a day* on OBS. So I still have to go the cron-way on a different machine?
Yes, there is no cron like feature in OBS. You are supposed to do this somewhere else.
somewhere else might be the action hooks in github/gitlab and so on:
https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.source_ser vice.html#sec.obs.sserv.token_usage
I have tested various way and will probably use curl -H "Authorization: Token <TOKEN>" -X POST https://build.opensuse.org/ trigger/runservice in a cron job. I have created a token for a special package and operation Thanks @all for your help! Axel
participants (6)
-
Adrian Schröter
-
Andreas Schwab
-
Axel Braun
-
Bernhard Voelker
-
Henne Vogelsang
-
Neal Gompa