Implementing CICD with our Jenkins, I observed that even though a knife cookbook upload fails, it still exits with a success. Changing this to a non-zero exit would result in a failed publish step, which would be expected. The errors below indicate that a publish was not successful, even though the error messages did assist in resolving the issue.
ERROR: Cannot find a cookbook named test-mike; did you forget to add metadata to a cookbook? (https://docs.chef.io/config_rb_metadata/)
WARNING: Could not find any cookbooks in your cookbook path: '/workspace'. Use --cookbook-path to specify the desired path.
<-- Completed freestyle step in 0:03.3
Build ran successfully.