From a7568dc03c1c6851ff6c690e8e35ade9a3199c4a Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sat, 17 Aug 2024 17:33:39 -0400 Subject: Allow the user to disable uploading build info objects to artifactory (#33) * Add enable_artifactory_build_info to globals structure * Add --no-artifactory-build-info command line argument to status main() * Useful for diag/test runs when a fully traceable delivery isn't desired --- src/stasis_main.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/stasis_main.c') diff --git a/src/stasis_main.c b/src/stasis_main.c index dca9be8..cf07b3a 100644 --- a/src/stasis_main.c +++ b/src/stasis_main.c @@ -8,9 +8,10 @@ #define OPT_ALWAYS_UPDATE_BASE 1000 #define OPT_NO_DOCKER 1001 #define OPT_NO_ARTIFACTORY 1002 -#define OPT_NO_TESTING 1003 -#define OPT_OVERWRITE 1004 -#define OPT_NO_REWRITE_SPEC_STAGE_2 1005 +#define OPT_NO_ARTIFACTORY_BUILD_INFO 1003 +#define OPT_NO_TESTING 1004 +#define OPT_OVERWRITE 1005 +#define OPT_NO_REWRITE_SPEC_STAGE_2 1006 static struct option long_options[] = { {"help", no_argument, 0, 'h'}, {"version", no_argument, 0, 'V'}, @@ -23,6 +24,7 @@ static struct option long_options[] = { {"overwrite", no_argument, 0, OPT_OVERWRITE}, {"no-docker", no_argument, 0, OPT_NO_DOCKER}, {"no-artifactory", no_argument, 0, OPT_NO_ARTIFACTORY}, + {"no-artifactory-build-info", no_argument, 0, OPT_NO_ARTIFACTORY_BUILD_INFO}, {"no-testing", no_argument, 0, OPT_NO_TESTING}, {"no-rewrite", no_argument, 0, OPT_NO_REWRITE_SPEC_STAGE_2}, {0, 0, 0, 0}, @@ -40,6 +42,7 @@ const char *long_options_help[] = { "Overwrite an existing release", "Do not build docker images", "Do not upload artifacts to Artifactory", + "Do not upload build info objects to Artifactory", "Do not execute test scripts", "Do not rewrite paths and URLs in output files", NULL, @@ -261,6 +264,9 @@ int main(int argc, char *argv[]) { case OPT_NO_ARTIFACTORY: globals.enable_artifactory = false; break; + case OPT_NO_ARTIFACTORY_BUILD_INFO: + globals.enable_artifactory_build_info = false; + break; case OPT_NO_TESTING: globals.enable_testing = false; break; -- cgit