how to use OBS Publisher Hooks?
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 thank you
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.
participants (2)
-
huangyang
-
Srinidhi B