aboutsummaryrefslogtreecommitdiff
path: root/src/stasis_main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-08-17 17:33:39 -0400
committerGitHub <noreply@github.com>2024-08-17 17:33:39 -0400
commita7568dc03c1c6851ff6c690e8e35ade9a3199c4a (patch)
treea2ae84583730b8b2fe35e7823c3c546c04a546ca /src/stasis_main.c
parent04ce859e53ef28bc917d4d3a12161e1cfbfa2859 (diff)
downloadstasis-a7568dc03c1c6851ff6c690e8e35ade9a3199c4a.tar.gz
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
Diffstat (limited to 'src/stasis_main.c')
-rw-r--r--src/stasis_main.c12
1 files changed, 9 insertions, 3 deletions
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;