Skip to content
Bryan Drewery edited this page Mar 20, 2015 · 13 revisions

Hooks should be installed to /usr/local/etc/poudriere.d/hooks/HOOKNAME.sh

Each hook is called with the following environment:

Name Description
BUILD_URL URL for the build.
BUILDNAME The configured build name.
LOG_URL URL for the logs.
POUDRIERE_BUILD_TYPE Currently always bulk
POUDRIERE_DATA Path to configured /usr/local/poudriere/data.
POUDRIERED Path to configured /usr/local/etc/poudriere.d.
JAILNAME The configured jail name.
PTNAME The configured ports tree name.
SETNAME The configured set name (from -z)
MASTERNAME Master Jail name, i.e. JAILNAME-PTNAME-SETNAME
MASTERMNT Path to the master reference jail. This is cloned for each builder.
PACKAGES Path to the packages directory for this build.

The following hooks currently exist:

Verison Hook name Event Description Arguments
3.1.2 jail mount Called when jail mounts are performed. mntpath
3.1+ jail start Called when the master jail starts.
3.1+ jail stop Called when the master jail is stopped.
3.1.2 builder start Called when a builder jail is created. id mntpath
3.1.2 builder stop Called when a builder jail is stopped. id mntpath
3.1+ pkgbuild skipped Called for skipped port builds. origin pkgname dependent_origin
3.1+ pkgbuild ignored Called for ignored port builds. origin pkgname reason
3.1+ pkgbuild failed Called for failed port builds. port pkgname phase
3.1+ pkgbuild success Called for successful port builds. port pkgname
3.1+ bulk start Called when bulk starts.
3.1+ bulk done Called when bulk stops. #built #failed #ignored #skipped
Clone this wiki locally