From 34ec75d49d084c15a572dcd9c20abb6b859af9f9 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 11 Dec 2024 11:29:11 -0500 Subject: Initialize authentication context * Argument generator may fail otherwise --- src/lib/delivery/delivery_artifactory.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/delivery/delivery_artifactory.c b/src/lib/delivery/delivery_artifactory.c index 9ad5829..e979b9a 100644 --- a/src/lib/delivery/delivery_artifactory.c +++ b/src/lib/delivery/delivery_artifactory.c @@ -188,6 +188,11 @@ int delivery_mission_render_files(struct Delivery *ctx) { int delivery_series_sync(struct Delivery *ctx) { struct JFRT_Download dl = {0}; + if (jfrt_auth_init(&ctx->deploy.jfrog_auth)) { + fprintf(stderr, "Failed to initialize Artifactory authentication context\n"); + return -1; // error + } + char *remote_dir = NULL; if (asprintf(&remote_dir, "%s/%s/%s/(*)", globals.jfrog.repo, ctx->meta.mission, ctx->info.build_name) < 0) { SYSERROR("%s", "Unable to allocate bytes for remote directory path"); -- cgit