[JIRA] (JENKINS-58056) Add option to fail the step if no files are found for pattern

19 views
Skip to first unread message

robrod@versive.com (JIRA)

unread,
Jun 17, 2019, 2:15:02 PM6/17/19
to jenkinsc...@googlegroups.com
Robert Rodrigues created an issue
 
Jenkins / New Feature JENKINS-58056
Add option to fail the step if no files are found for pattern
Issue Type: New Feature New Feature
Assignee: Ulli Hafner
Components: warnings-ng-plugin
Created: 2019-06-17 18:14
Priority: Major Major
Reporter: Robert Rodrigues

If the plugin's step is configured with a file pattern which does not match any files, it logs the error but has no options for having this actually fail the step/build.

 

i.e. {{[CodeNarc] [-ERROR-] No files found for pattern 'build/reports/codenarc/*.xml'. Configuration error?}}

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

ullrich.hafner@gmail.com (JIRA)

unread,
Jun 17, 2019, 4:39:02 PM6/17/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Jun 17, 2019, 4:43:02 PM6/17/19
to jenkinsc...@googlegroups.com
Ulli Hafner commented on New Feature JENKINS-58056
 
Re: Add option to fail the step if no files are found for pattern

Would it make sense to fail the build if there are any errors in the log of the warnings plugin (they all show up as errors in the info view of the plugin in a build)? Or should it fail only in the specific case of the non matching pattern?

ullrich.hafner@gmail.com (JIRA)

unread,
Jun 17, 2019, 4:44:02 PM6/17/19
to jenkinsc...@googlegroups.com
Ulli Hafner edited a comment on New Feature JENKINS-58056
Would it make sense to fail the build if there are any errors in the log of the warnings plugin (they all show up as errors in the info view of the plugin in a build)? Or should it fail only in the specific case of the non matching pattern?


The former one would be much easier to implement (and would catch some other similar problems as well).

robrod@versive.com (JIRA)

unread,
Jun 17, 2019, 5:26:02 PM6/17/19
to jenkinsc...@googlegroups.com

I think it would make sense to, perhaps optionally, fail on any errors.

2016.sladyn.nunes@ves.ac.in (JIRA)

unread,
Jun 19, 2019, 9:07:02 AM6/19/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 13, 2019, 5:58:02 PM7/13/19
to jenkinsc...@googlegroups.com
Ulli Hafner started work on New Feature JENKINS-58056
 
Change By: Ulli Hafner
Status: Open In Progress

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 13, 2019, 6:02:02 PM7/13/19
to jenkinsc...@googlegroups.com
Change By: Ulli Hafner
Status: In Progress Fixed but Unreleased
Resolution: Fixed

ullrich.hafner@gmail.com (JIRA)

unread,
Jul 13, 2019, 6:02:02 PM7/13/19
to jenkinsc...@googlegroups.com

ullrich.hafner@gmail.com (JIRA)

unread,
Sep 3, 2019, 7:06:04 PM9/3/19
to jenkinsc...@googlegroups.com
Change By: Ulli Hafner
Status: Fixed but Unreleased Resolved
Released As: 6.0.0
Reply all
Reply to author
Forward
0 new messages