aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-12-11 11:29:11 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-12-11 11:29:11 -0500
commit34ec75d49d084c15a572dcd9c20abb6b859af9f9 (patch)
tree2f353f555b1169a447ba4e20bd71b08dbd06408f
parentf2879b58e2b8ceff1c865f17ebd53d89242e3d84 (diff)
downloadstasis-34ec75d49d084c15a572dcd9c20abb6b859af9f9.tar.gz
Initialize authentication context
* Argument generator may fail otherwise
-rw-r--r--src/lib/delivery/delivery_artifactory.c5
1 files changed, 5 insertions, 0 deletions
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");