jfrog / teamcity-artifactory-plugin

TeamCity plugin that enables traceable build artifacts with Artifactory
https://www.jfrog.com/confluence/display/JFROG/TeamCity+Artifactory+Plug-in
Apache License 2.0
42 stars 47 forks source link

Should have the option to make the build config step fail in case of "no files are affected" like "--fail-no-op" in JFrog CLI. #140

Open ldemers777 opened 1 year ago

ldemers777 commented 1 year ago

When the filespec does not match any files to download/upload, the build config step still succeeds. This hides the fact that no files were affected (downloaded/uploaded). Despite it can be legitimate in some scenarios, most of the time, the user wants the build to raise a failure when this happens.

JFrog CLI option "--fail-no-op" already provides this, so that would be great to have the "option" to enable that behavior with the plugin as well.

Artifactory: Enterprise+ 7.38.10 Plugin: 2.9.3