Details
-
Type:
New Feature
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: view-job-filters-plugin
-
Labels:
-
Similar Issues:
Description
I'd like this plugin to support fallback filters, that can be used to do one of the following things:
- include all jobs in a view if no jobs have been included by previous filters
- exclude all jobs from a view if all jobs have been included by previous filters
An unit tested implementation of this is provided in the attached patch.
When using filters to only show failing/building jobs on a Build Monitor View, this can be used to show all successful jobs when none are failing/building.
Code changed in jenkins
User: davidparsson
Path:
src/main/java/hudson/views/AddRemoveFallbackFilter.java
src/main/resources/hudson/views/AddRemoveFallbackFilter/config.jelly
src/main/webapp/add-remove-fallback-help.html
src/test/java/hudson/views/AddRemoveFallbackFilterTest.java
http://jenkins-ci.org/commit/view-job-filters-plugin/c41ec3fecd716ff8f4e3e6885562aeec35fc1a1a
Log:
Add Fallback Filters. Fixes
JENKINS-29747.