aboutsummaryrefslogtreecommitdiff
path: root/src/stasis_main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2024-07-22 19:56:58 -0400
committerGitHub <noreply@github.com>2024-07-22 19:56:58 -0400
commitb506bb73be5e4c8dde16c5c8bd613c00b3d75565 (patch)
tree983eb884ba6f4e9413506020e62520e87272f4ee /src/stasis_main.c
parent9489d31f6314322d26ec43196284b94069d6cd3a (diff)
downloadstasis-b506bb73be5e4c8dde16c5c8bd613c00b3d75565.tar.gz
Check release (#14)
* Add jfrog_cli_rt_search() and JFRT_Search structure * Ensure authentication arguments are written before a subsystem task's arguments * When artifactory is enabled check if the release is already present. * When artifactory is disabled the check will be made against the local filesystem.
Diffstat (limited to 'src/stasis_main.c')
-rw-r--r--src/stasis_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stasis_main.c b/src/stasis_main.c
index 7e2262a..686c044 100644
--- a/src/stasis_main.c
+++ b/src/stasis_main.c
@@ -415,9 +415,10 @@ int main(int argc, char *argv[]) {
//delivery_runtime_show(&ctx);
}
- // Safety gate: Avoid clobbering a delivery unless the user wants that behavior
+ // Safety gate: Avoid clobbering a delivered release unless the user wants that behavior
+ msg(STASIS_MSG_L1, "Checking release history\n");
if (delivery_exists(&ctx)) {
- msg(STASIS_MSG_ERROR | STASIS_MSG_L1, "Refusing to overwrite delivery: %s\nUse --overwrite to enable release clobbering.\n", ctx.info.release_name);
+ msg(STASIS_MSG_ERROR | STASIS_MSG_L1, "Refusing to overwrite release: %s\nUse --overwrite to enable release clobbering.\n", ctx.info.release_name);
exit(1);
}