From 9f33f6284880269172e7624d063a55c152f53bd5 Mon Sep 17 00:00:00 2001 From: Tim Jacomb Date: Tue, 10 Dec 2024 21:43:04 +0000 Subject: [PATCH] Allow customising yui default value --- .../model/experimentalflags/RemoveYuiUserExperimentalFlag.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/jenkins/model/experimentalflags/RemoveYuiUserExperimentalFlag.java b/core/src/main/java/jenkins/model/experimentalflags/RemoveYuiUserExperimentalFlag.java index 5f8620862fce..418f9c4b5406 100644 --- a/core/src/main/java/jenkins/model/experimentalflags/RemoveYuiUserExperimentalFlag.java +++ b/core/src/main/java/jenkins/model/experimentalflags/RemoveYuiUserExperimentalFlag.java @@ -27,6 +27,7 @@ import edu.umd.cs.findbugs.annotations.NonNull; import edu.umd.cs.findbugs.annotations.Nullable; import hudson.Extension; +import jenkins.util.SystemProperties; import org.kohsuke.accmod.Restricted; import org.kohsuke.accmod.restrictions.NoExternalUse; @@ -51,6 +52,6 @@ public String getShortDescription() { @NonNull @Override public Boolean getDefaultValue() { - return true; + return SystemProperties.getBoolean(RemoveYuiUserExperimentalFlag.class.getName() + ".defaultValue", true); } }