Ability to disable Java 11 monitor
@@ -28,6 +28,7 @@ import hudson.Extension;
import hudson.model.AdministrativeMonitor;
import hudson.security.Permission;
import jenkins.model.Jenkins;
+import jenkins.util.SystemProperties;
import jenkins.util.java.JavaUtils;
import org.jenkinsci.Symbol;
import org.kohsuke.accmod.Restricted;
@@ -46,9 +47,11 @@ import java.io.IOException;
@Symbol("javaVersionRecommendation")
public class JavaVersionRecommendationAdminMonitor extends AdministrativeMonitor {
+ private static Boolean disabled = SystemProperties.getBoolean(JavaVersionRecommendationAdminMonitor.class.getName() + ".disabled", false);
+
@Override
public boolean isActivated() {
- return JavaUtils.isRunningWithJava8OrBelow();
+ return !disabled && JavaUtils.isRunningWithJava8OrBelow();
}
@Override
