From b8717f6a94553140552c96d69649251395d18629 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 6 Mar 2024 17:03:23 -0500 Subject: Set global.jfrog.repo through config, or environment variable * This used to be the case but the code was removed at some point; most likely by accident. --- src/deliverable.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/deliverable.c b/src/deliverable.c index f51f852..5b0d3ff 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -366,6 +366,15 @@ int delivery_init(struct Delivery *ctx, struct INIFILE *ini, struct INIFILE *cfg conv_str_stackvar(globals, jfrog.repo) } + // Set artifactory repository via environment if possible + char *jfrepo = getenv("OMC_JF_REPO"); + if (jfrepo) { + if (globals.jfrog.repo) { + guard_free(globals.jfrog.repo); + } + globals.jfrog.repo = strdup(jfrepo); + } + // Configure architecture and platform information delivery_init_platform(ctx); -- cgit