Brent Duffy commented on Improvement JENKINS-15354

Hi Gregory,

I'm thinking if the 'Files to deploy' _expression_ does not match any files relative to the $WORKSPACE, the option, if selected, should trigger a build failure. For example, the following _expression_ could trigger a build failure if no .jar files were present under the 'output' directory:

output/*.jar

This new option, 'Fail build if there are no files to deploy' could be added within the 'Advanced...' button options for the 'Files to deploy' field. The problem we're having is that if there are zero files to deploy, the ArtifactDeployer plugin currently indicates that zero artifacts being deployed is a success condition. I'd be useful to have an option to say that, if no artifacts were found to deploy, some error prevented the artifacts from being available for deployment when they were expected per the build configuration.

Thanks for your quick response!

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to