From 555bfe7c448d4ec1c60ca444bd4f37d41e74db56 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 21 Sep 2022 13:55:21 +0200 Subject: add support for hooks except for debspawn --- mdbp/build_schema.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'mdbp/build_schema.json') diff --git a/mdbp/build_schema.json b/mdbp/build_schema.json index e083654..be90d7b 100644 --- a/mdbp/build_schema.json +++ b/mdbp/build_schema.json @@ -139,6 +139,35 @@ "enum": [ "enable", "disable", "try-disable", "try-enable" ], "description": "Decide whether the build should be able to access the internet. Without this property, the backend picks its own default. A try-prefixed value does not cause a failure when the request cannot be fulfilled." }, + "hooks": { + "type": "array", + "items": { + "type": "object", + "required": [ "type", "command" ], + "additionalProperties": false, + "properties": { + "type": { + "enum": [ "prebuild", "postbuildsuccess", "postbuildfailure" ], + "description": "Specifies when the hook is run. prebuild means before running dpkg-buildpackage and postbuild means after." + }, + "command": { + "type": "string", + "description": "this script is executed using /bin/sh" + }, + "user": { + "enum": [ "root", "builder" ], + "default": "root", + "description": "whether to run the hook as root or as the user performing the build" + }, + "cwd": { + "enum": [ "root", "sourcetree" ], + "default": "root", + "description": "whether to run the hook in the root directory or inside the unpacked source tree" + } + } + }, + "description": "customization hooks for influencing the build using shell scripts" + }, "output": { "type": "object", "required": [ "directory" ], -- cgit v1.2.3