diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-06 17:03:23 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-03-06 17:03:23 -0500 |
commit | b8717f6a94553140552c96d69649251395d18629 (patch) | |
tree | f6767928245e1456883b744e0202a8f458bd6313 | |
parent | 304df81a7c48c8fbed7d6d0488ed72a6112e6606 (diff) | |
download | stasis-b8717f6a94553140552c96d69649251395d18629.tar.gz |
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.
-rw-r--r-- | src/deliverable.c | 9 |
1 files changed, 9 insertions, 0 deletions
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); |