-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support resulting an error code when using --fail-no-op=true and spec file #577
Comments
Thanks for reporting this issue @arrow0108 ! Can you please share with us your use case and file-spec and let us know what the desired result you wish to get? |
Hi Liron, In our case - indeed we have one spec file to download a set of artifacts. I understand the workaround suggested, separate to several files but I think the CLI got a spec file and didn't fulfill it should return an error. Thanks |
@arrow0108 , thanks for your reply! I think that for this kind of use case we'll need to add some kind of "fail-no-op" property to the file-spec schema that will act differently from the "global" flag provided to the command. Please let us know what do you think of that solution. |
Sounds ok I guess or a new --fail-part-op (for partial operations :-) ) |
The current behavior seems counter-intuitive. Given the list of elements in the JSON spec file, I would've expected that the A |
Agreed. Given the developer's expectations going from jfrog command to the file specs, I would have expected that given a single failure among multiple artifacts in a file spec would trigger an error code 2. |
I agree that fail-no-op should either:
I am currently experiencing an issue where if certain patterns fail to download any files, this "error" is silent. The only way to confirm if the download really succeeded is to dig through a long log file. |
+1 for this. I've got a similar situation where I have a spec-file to download a collection of artifacts. If any of them are NOT downloaded, I want to immediately fail my pipeline. Currently, I'm not getting a failure code if a single artifact is not downloaded and no way to know which one isn't. |
Same situation here, and it seems like a very common scenario. There must be a way to validate that ALL the entries in the spec file are successful |
This issue has been marked as stale due to 6 months of inactivity. As part of our effort to address every issue properly, please feel free to remove the stale label or keep this issue active by leaving a comment. Otherwise, it will be closed in 7 days |
Are there any updates to this issue? |
Tested with JFrog Platform Enterprise Plus 7.98.14We are facing the same issue with our automation processes. Its all but intuitive to fail for cases where any of the item within the spec file fails to get uploaded/downloaded/copied etc. An update on this topic will be much appreciated. |
Dear Jfrogs,
When I use --fail-no-op=true with file download everything works fine but when using a spec file I think the behavior should change.
If a path specified in a spec file is not fulfilled (no file was downloaded) - the operation should return an error code.
I hope this sounds reasonable.
The text was updated successfully, but these errors were encountered: