On Tue, 26 Jun 2018 09:37:50 +0200
Christian
Hello,
I need your help with this _Service cause I want to get an automatic rebuild after creating a new 'tag' in github.
On my research I stumbled over 'github_tarballs' Service which seems the one to be used for this.
sadly there is not much documentation on how to use it ...
... used info from here:
https://openbuildservice.org/2013/11/22/source-update-via_token
... so I took the sample from 'github code' ...
<services>
<service name="obs_scm">
<param name="url">git://github.com/openSUSE/obs-build.git</param>
<param name="scm">git</param>
</service>
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="buildtime" name="set_version" />
<service name="github_tarballs">
<summary>Download tarballs and update package data</summary>
<description>This service downloads tarballs and updates the spec file version and changes file</description>
<param name="url">
<description>https://github.x.y.z/user/mpremoval/archive/1.0.tar.gz</description>
<required/>
</param>
<param name="package">
<description>mpremoval</description>
</param>
<param name="filename">
<description>mpremoval</description>
</param>
<param name="email">
<description>user@internal.mail</description>
<required/>
</param>
<param name="repo_owner">
<description>user</description>
<required/>
</param>
<param name="repo_name">
<description>mpremoval</description>
<required/>
</param>
<param name="target">
<description>tokencode(removed)</description>
<required/>
</param>
</service>
</services>
...but then I am running into the following Error when trying to do a local build ...
Server returned an error: HTTP Error 400: Bad Request
remote error: unknown element summary
seems that the 'service' section for 'github_tarballs' is not correct.
Or I am doing something completely wrong.
So any help on how to get this work would be really appreciated.
Thank you for your help ...
Kind Regards
Chris
P.S.: the package 'obs-service-github_tarballs' is installed is installed on the OBS instance.
both, github and obs are own instances ....
Hi Christian an example of _service, where I'm downloading something from github, recompress it and do set the version would be: <services> <service name="tar_scm" mode="disabled"> <param name="url">https://github.com/foo/bar.git</param> <param name="scm">git</param> <param name="exclude">.git</param> <param name="versionformat">1-git.%h</param> <param name="revision">remotes/origin/master</param> </service> <service name="recompress" mode="disabled"> <param name="file">*.tar</param> <param name="compression">gz</param> </service> <service name="set_version" mode="disabled"> <param name="basename">bar</param> </service> </services> I recommend you to read the documentation provided on https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.source_serv... regards, -- Victor Pereira SUSE LINUX GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg