diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-12 09:07:10 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-04-12 09:07:10 -0400 |
commit | a8d6e37a874c7a40429d0aec247658ae1edca6ed (patch) | |
tree | c9c958c0c416ecea8eec0042a88a4b2a036c1274 /src/main.c | |
parent | 6a66d6848a834eddae8225fd723a2a05e98b3c4d (diff) | |
download | stasis-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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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)) { |