diff options
author | Helmut Grohne <helmut@subdivi.de> | 2022-09-21 13:55:21 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2022-09-21 13:55:21 +0200 |
commit | 555bfe7c448d4ec1c60ca444bd4f37d41e74db56 (patch) | |
tree | 80d04f8a8a539f6ac391411477a171b3aa8f1886 /mdbp/build_schema.json | |
parent | a6eba58d0c84ae596be527078904447f29622ff1 (diff) | |
download | mdbp-555bfe7c448d4ec1c60ca444bd4f37d41e74db56.tar.gz |
add support for hooks
except for debspawn
Diffstat (limited to 'mdbp/build_schema.json')
-rw-r--r-- | mdbp/build_schema.json | 29 |
1 files changed, 29 insertions, 0 deletions
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" ], |