Mailinglist Archive: opensuse-buildservice (144 mails)

< Previous Next >
Re: [opensuse-buildservice] Issue with revision in git services
  • From: Adrian Schröter <adrian@xxxxxxx>
  • Date: Wed, 25 Sep 2019 19:04:41 +0200
  • Message-id: <6287682.jLqlXmogHQ@linux-ywca>
On Mittwoch, 25. September 2019, 18:02:16 CEST Dominig ar Foll (Intel Open
Source) wrote:
Hello,

I try to extract a given review from gerrit with a service file and I
get an error that I do not understand
My _service points to a pending review.
- If I run the service locally with "osc service localrun" it works.
- if I run "git clone https://review.opendev.org/starlingx/fault
refs/changes/95/684395/5" I get the code
* if I run "osc service rr" I get an error "No such revision"

Could some one explains me what is wrong ?

# git show refs/changes/95/684395/5

leads to an error here. Usually you specify a commit, tag or branch.
I suppose you have a local tag with that name?


My test project is at

https://build.opensuse.org/package/show/home:dominig:starlingx-sandbox/fm-co
mmon2

------------------- _service ------------------------------
<services>
<service name="obs_scm">
<param name="scm">git</param>
<param name="url">https://review.opendev.org/starlingx/fault</param>
<param name="revision">refs/changes/95/684395/5</param>
<param name="version">1.0</param>
<param name="subdir">fm-common</param>
<param name="filename">fm-common</param>
<param name="changesgenerate">disable</param>
<param name="extract">opensuse/fm-common.spec</param>
<param name="extract">opensuse/fm-common.changes</param>
</service>
<service mode="buildtime" name="tar" />
<service mode="buildtime" name="recompress">
<param name="compression">gz</param>
<param name="file">*.tar</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

------------ OBS log ---------------

service obs_scm failed:
/srv/obs/service/12167
/srv/obs/service/12167/src
/srv/obs/service/12167/src/_service
/srv/obs/service/12167/src/.old
/srv/obs/service/12167/out
/srv/obs/service/12167/var
/srv/obs/service/12167/var/cache
/srv/obs/service/12167/var/cache/obs
/srv/obs/service/12167/var/cache/obs/h9UaxI3JJ6e1
/srv/obs/service/12167/var/cache/obs/h9UaxI3JJ6e1/scripts
/srv/obs/service/12167/var/cache/obs/h9UaxI3JJ6e1/scripts/inner.sh
/srv/obs/service/12167/var/cache/obs/h9UaxI3JJ6e1/scripts/inner.sh.command
/srv/obs/service/12167/home
+ echo Running /usr/lib/obs/service//obs_scm --scm git --url
https://review.opendev.org/starlingx/fault --revision
refs/changes/95/684395/5 --version 1.0 --subdir fm-common --filename
fm-common --changesgenerate disable --extract opensuse/fm-common.spec
--extract opensuse/fm-common.changes --outdir
/var/cache/obs/h9UaxI3JJ6e1/out + export
CACHEDIRECTORY=/var/cache/obs/h9UaxI3JJ6e1/scm-cache
+ CACHEDIRECTORY=/var/cache/obs/h9UaxI3JJ6e1/scm-cache
+ export HOME=/var/cache/obs/h9UaxI3JJ6e1/home
+ HOME=/var/cache/obs/h9UaxI3JJ6e1/home
+ /usr/lib/obs/service//obs_scm --scm git --url
https://review.opendev.org/starlingx/fault --revision
refs/changes/95/684395/5 --version 1.0 --subdir fm-common --filename
fm-common --changesgenerate disable --extract opensuse/fm-common.spec
--extract opensuse/fm-common.changes --outdir
/var/cache/obs/h9UaxI3JJ6e1/out Running /usr/lib/obs/service//obs_scm --scm
git --url https://review.opendev.org/starlingx/fault --revision
refs/changes/95/684395/5 --version 1.0 --subdir fm-common --filename
fm-common --changesgenerate disable --extract opensuse/fm-common.spec
--extract opensuse/fm-common.changes --outdir
/var/cache/obs/h9UaxI3JJ6e1/out refs/changes/95/684395/5: No such revision


--

Adrian Schroeter <adrian@xxxxxxx>
Build Infrastructure Project Manager

SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
(HRB 247165, AG München), Geschäftsführer: Felix Imendörffer




--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >