[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensuse-buildservice
Subject:    Re: how to use OBS Publisher Hooks?
From:       Srinidhi B <Srinidhi.BS () microfocus ! com>
Date:       2020-12-30 16:30:51
Message-ID: 9fa798ea4e1a39de31b0e56914bf05a11e849bbe.camel () microfocus ! com
[Download RAW message or body]

Hi,

On Wed, 2020-12-30 at 19:52 +0800, huangyang wrote:
> hi,
>    I plan to use Publish Hooks. I refer to section 4.6.1 in the document "obs-
> admin-guild". 
>    But I did not understand how to configure the following three parameters. 
>   1)information about the project and its repository
>   2)path to published repository
>   3)changed packages
>   Has anyone used it? Please guide me
> 

You do not have to configure anything. These 3 arguments will be passed to your
hook script by the publisher automatically.

I use the following in one of my hook scripts:

   #!/bin/bash
   ...
   PROJECT="$1"
   shift

   REPO_PATH="$1"
   shift

   CHANGE_LIST="$*"
   ...
   for FILE in $CHANGE_LIST
   do
       # do something
   done
   ...

Hope this helps,
Srinidhi.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic