aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-03-06 17:03:23 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-03-06 17:03:23 -0500
commitb8717f6a94553140552c96d69649251395d18629 (patch)
treef6767928245e1456883b744e0202a8f458bd6313 /src
parent304df81a7c48c8fbed7d6d0488ed72a6112e6606 (diff)
downloadstasis-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.
Diffstat (limited to 'src')
-rw-r--r--src/deliverable.c9
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);