From a8d6e37a874c7a40429d0aec247658ae1edca6ed Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 12 Apr 2024 09:07:10 -0400 Subject: Bootstrap delivery context * Gives access to build information before directory creation * Better control over where data ends up * Decreases complexity related to uploading artifacts from a delivery tree --- src/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index f91b3f7..0ead157 100644 --- a/src/main.c +++ b/src/main.c @@ -343,8 +343,11 @@ int main(int argc, char *argv[]) { ctx._omc_ini_fp.delivery_path = strdup(delivery_input); - extern char *bootstrap_build_name(struct Delivery *ctx); - bootstrap_build_name(&ctx); + msg(OMC_MSG_L2, "Bootstrapping delivery context\n"); + if (bootstrap_build_info(&ctx)) { + msg(OMC_MSG_ERROR | OMC_MSG_L2, "Failed to bootstrap delivery context\n"); + exit(1); + } msg(OMC_MSG_L2, "Initializing delivery context\n"); if (delivery_init(&ctx)) { -- cgit