File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed
core/src/main/java/jenkins Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "java.compile.nullAnalysis.mode" : " automatic"
3+ }
Original file line number Diff line number Diff line change 2626
2727import edu .umd .cs .findbugs .annotations .NonNull ;
2828import hudson .Extension ;
29+ import hudson .Functions ;
30+ import hudson .model .Descriptor ;
2931import hudson .model .ManagementLink ;
3032import hudson .security .Permission ;
3133import jenkins .model .Jenkins ;
3739@ Extension (ordinal = Integer .MAX_VALUE - 200 ) @ Symbol ("configure" )
3840public class ConfigureLink extends ManagementLink {
3941
40- @ Override
4142 public String getIconFileName () {
4243 return "symbol-settings" ;
4344 }
@@ -71,6 +72,10 @@ public Category getCategory() {
7172
7273 @ Override
7374 public @ NonNull String getSearchKeywords () {
74- return "usage statistics system message executors quiet period scm checkout retry resource root" ;
75+ StringBuilder keywords = new StringBuilder ("usage statistics system message executors quiet period scm checkout retry resource root" );
76+ for (Descriptor d : Functions .getSortedDescriptorsForGlobalConfigUnclassifiedReadable ()) {
77+ keywords .append (" " ).append (d .getDisplayName ());
78+ }
79+ return keywords .toString ();
7580 }
7681}
Original file line number Diff line number Diff line change @@ -78,6 +78,6 @@ public Badge getBadge() {
7878
7979 @ Override
8080 public @ NonNull String getSearchKeywords () {
81- return "proxy http proxy update site update center" ;
81+ return "update site update center" ;
8282 }
8383}
Original file line number Diff line number Diff line change @@ -2431,6 +2431,12 @@ protected Iterable<TopLevelItem> allAsIterable() {
24312431 @ Override
24322432 protected Collection <View > all () { return getAllViews (); }
24332433 });
2434+
2435+ // Add GlobalConfiguration items to search index so users can find configuration sections
2436+ for (Descriptor <?> d : Functions .getSortedDescriptorsForGlobalConfigUnclassifiedReadable ()) {
2437+ builder .add ("/manage/configure" , d .getDisplayName ());
2438+ }
2439+
24342440 return builder ;
24352441 }
24362442
You can’t perform that action at this time.
0 commit comments