Skip to content

Commit

Permalink
Set global.jfrog.repo through config, or environment variable
Browse files Browse the repository at this point in the history
* This used to be the case but the code was removed at some point; most likely by accident.
  • Loading branch information
jhunkeler committed Mar 6, 2024
1 parent 304df81 commit b8717f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/deliverable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b8717f6

Please sign in to comment.