aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-05-03 12:18:59 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-05-03 12:18:59 -0400
commitcc7b66254ea2d00e27555ef420764343e8d5430c (patch)
tree1865d13027d6b2286f975d4fc8c2259315788ed2
parent25d9a9d23f94f736c77d5b05d45ddcfeb2cb9dab (diff)
downloadstasis-cc7b66254ea2d00e27555ef420764343e8d5430c.tar.gz
Dump metadata files before uploading artifacts
-rw-r--r--src/omc_main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/omc_main.c b/src/omc_main.c
index 8693dd4..6607d8e 100644
--- a/src/omc_main.c
+++ b/src/omc_main.c
@@ -581,6 +581,11 @@ int main(int argc, char *argv[]) {
msg(OMC_MSG_L3, "Rewriting release spec file (stage 2): %s\n", path_basename(specfile));
delivery_rewrite_spec(&ctx, specfile, DELIVERY_REWRITE_SPEC_STAGE_2);
+ msg(OMC_MSG_L1, "Dumping metadata\n");
+ if (delivery_dump_metadata(&ctx)) {
+ msg(OMC_MSG_L1 | OMC_MSG_ERROR, "Metadata dump failed\n");
+ }
+
if (want_artifactory) {
if (globals.enable_artifactory) {
msg(OMC_MSG_L1, "Uploading artifacts\n");
@@ -592,11 +597,6 @@ int main(int argc, char *argv[]) {
msg(OMC_MSG_L1 | OMC_MSG_WARN, "Artifact uploading is disabled. deploy:artifactory is not configured\n");
}
- msg(OMC_MSG_L1, "Dumping metadata\n");
- if (delivery_dump_metadata(&ctx)) {
- msg(OMC_MSG_L1 | OMC_MSG_ERROR, "Metadata dump failed\n");
- }
-
msg(OMC_MSG_L1, "Cleaning up\n");
delivery_free(&ctx);
globals_free();