forked from jenkinsci/jenkins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
experimental flag to run Jenkins without YUI
The YUI library is old and no longer maintained. Add a user experimental flag to disable YUI. It's disabled by default. When enabling all the YUI related js libraries and css classes are not loaded. Following PR are required to get Jenkins to not show any errors eventually jenkinsci#7569 Some plugins that use YUI (not complete): credentials ldap global-build-stats build-monitor categorized-view Plugins that make use of makeButton (not complete) credentials (fixed with jenkinsci/credentials-plugin#533) openid acceptance-test-harness
- Loading branch information
1 parent
9e629f6
commit e1a55b2
Showing
2 changed files
with
48 additions
and
21 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
core/src/main/java/jenkins/model/experimentalflags/RemoveYuiUserExperimentalFlag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package jenkins.model.experimentalflags; | ||
|
||
import edu.umd.cs.findbugs.annotations.Nullable; | ||
import hudson.Extension; | ||
|
||
@Extension | ||
public class RemoveYuiUserExperimentalFlag extends BooleanUserExperimentalFlag { | ||
public RemoveYuiUserExperimentalFlag() { | ||
super("remove-vui.flag"); | ||
} | ||
|
||
@Override | ||
public String getDisplayName() { | ||
return "Remove YUI"; | ||
} | ||
|
||
@Nullable | ||
@Override | ||
public String getShortDescription() { | ||
return "Remove YUI from all Jenkins UI pages. This will break anything that depends on YUI"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters