aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-04-12 09:07:10 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-04-12 09:07:10 -0400
commita8d6e37a874c7a40429d0aec247658ae1edca6ed (patch)
treec9c958c0c416ecea8eec0042a88a4b2a036c1274 /src/main.c
parent6a66d6848a834eddae8225fd723a2a05e98b3c4d (diff)
downloadstasis-a8d6e37a874c7a40429d0aec247658ae1edca6ed.tar.gz
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
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
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)) {