Mailinglist Archive: opensuse-buildservice (266 mails)

< Previous Next >
Re: [opensuse-buildservice] Triggering package rebuilds upon each `git push` and acceptable service use
  • From: Martin Koegler <martin.koegler@xxxxxxxxx>
  • Date: Fri, 11 Jan 2013 09:22:16 +0100
  • Message-id: <20130111082215.GA21523@mail.zuhause>
On Fri, Jan 11, 2013 at 07:36:38AM +0100, Jan Kundrát wrote:
echo -n "Triggering the OBS rebuild... "
OBS_REQ_RESULT=$(curl --user jkt-git-auto-requestor:XXX -X POST -H
"Content-Length:0" -s -S

'https://api.opensuse.org/build/home:jkt-gentoo:trojita?cmd=rebuild&package=trojita-nightly')
if [[ "${OBS_REQ_RESULT}" == "<status code=\"ok\" />" ]]; then
echo " OK."
else
echo " Error: ${OBS_REQ_RESULT}"
fi

As you are using a service, shouldn't you use the runservice call?

Newer osc have a built in command, older must fall back to an API call:
osc api -m POST "source/home:xxx:yyy/pkg?cmd=runservice"

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

< Previous Next >
Follow Ups
References