diff --git a/core/src/main/java/hudson/Functions.java b/core/src/main/java/hudson/Functions.java index 3ae81031b0..6c2d0b7a0e 100644 --- a/core/src/main/java/hudson/Functions.java +++ b/core/src/main/java/hudson/Functions.java @@ -1989,7 +1989,7 @@ public class Functions { */ public static @CheckForNull String getConsoleUrl(WithConsoleUrl withConsoleUrl) { String consoleUrl = withConsoleUrl.getConsoleUrl(); - return consoleUrl != null ? Stapler.getCurrentRequest().getContextPath() + '/' + consoleUrl : null; + return consoleUrl != null ? Stapler.getCurrentRequest2().getContextPath() + '/' + consoleUrl : null; } /** diff --git a/core/src/main/java/jenkins/console/ConsoleUrlProvider.java b/core/src/main/java/jenkins/console/ConsoleUrlProvider.java index 9c6080ac02..f779c07e62 100644 --- a/core/src/main/java/jenkins/console/ConsoleUrlProvider.java +++ b/core/src/main/java/jenkins/console/ConsoleUrlProvider.java @@ -80,7 +80,7 @@ public interface ConsoleUrlProvider extends Describable { * @return the URL for the console for the specified build, relative to the web server root */ static @NonNull String getRedirectUrl(Run run) { - return Stapler.getCurrentRequest().getContextPath() + '/' + run.getConsoleUrl(); + return Stapler.getCurrentRequest2().getContextPath() + '/' + run.getConsoleUrl(); } static List all() { diff --git a/core/src/main/java/jenkins/model/GlobalComputerRetentionCheckIntervalConfiguration.java b/core/src/main/java/jenkins/model/GlobalComputerRetentionCheckIntervalConfiguration.java index 46d760fe8e..9766cd9772 100644 --- a/core/src/main/java/jenkins/model/GlobalComputerRetentionCheckIntervalConfiguration.java +++ b/core/src/main/java/jenkins/model/GlobalComputerRetentionCheckIntervalConfiguration.java @@ -6,7 +6,7 @@ import java.util.logging.Logger; import net.sf.json.JSONException; import net.sf.json.JSONObject; import org.jenkinsci.Symbol; -import org.kohsuke.stapler.StaplerRequest; +import org.kohsuke.stapler.StaplerRequest2; /** * Configures check interval for computer retention. @@ -56,7 +56,7 @@ public class GlobalComputerRetentionCheckIntervalConfiguration extends GlobalCon } @Override - public boolean configure(StaplerRequest req, JSONObject json) throws FormException { + public boolean configure(StaplerRequest2 req, JSONObject json) throws FormException { try { final int interval = json.getInt("computerRetentionCheckInterval"); setComputerRetentionCheckInterval(interval); diff --git a/core/src/main/java/jenkins/model/GlobalConfiguration.java b/core/src/main/java/jenkins/model/GlobalConfiguration.java index af788945b2..bc0d700403 100644 --- a/core/src/main/java/jenkins/model/GlobalConfiguration.java +++ b/core/src/main/java/jenkins/model/GlobalConfiguration.java @@ -67,7 +67,7 @@ public abstract class GlobalConfiguration extends Descriptor + value="${request2.getParameter('filter')}" />
diff --git a/core/src/main/resources/hudson/PluginManager/installed.jelly b/core/src/main/resources/hudson/PluginManager/installed.jelly index c9b7dd93f2..81b175b955 100644 --- a/core/src/main/resources/hudson/PluginManager/installed.jelly +++ b/core/src/main/resources/hudson/PluginManager/installed.jelly @@ -43,7 +43,7 @@ THE SOFTWARE. placeholder="${%Search installed plugins}" id="filter-box" autofocus="true" - value="${request.getParameter('filter')}" + value="${request2.getParameter('filter')}" enabled="${!noPlugins}" />
diff --git a/core/src/main/resources/hudson/PluginManager/updates.jelly b/core/src/main/resources/hudson/PluginManager/updates.jelly index d4163fb7cf..5ce8a810ff 100644 --- a/core/src/main/resources/hudson/PluginManager/updates.jelly +++ b/core/src/main/resources/hudson/PluginManager/updates.jelly @@ -41,7 +41,7 @@ THE SOFTWARE. placeholder="${%Search plugin updates}" id="filter-box" autofocus="true" - value="${request.getParameter('filter')}" + value="${request2.getParameter('filter')}" enabled="${!empty(list)}" />
diff --git a/core/src/main/resources/hudson/diagnosis/MemoryUsageMonitor/index.jelly b/core/src/main/resources/hudson/diagnosis/MemoryUsageMonitor/index.jelly index bb0efd378e..43c579130a 100644 --- a/core/src/main/resources/hudson/diagnosis/MemoryUsageMonitor/index.jelly +++ b/core/src/main/resources/hudson/diagnosis/MemoryUsageMonitor/index.jelly @@ -31,7 +31,7 @@ THE SOFTWARE.

${%JVM Memory Usage}

- +
${%Timespan}: diff --git a/core/src/main/resources/hudson/model/AbstractModelObject/descriptionForm.jelly b/core/src/main/resources/hudson/model/AbstractModelObject/descriptionForm.jelly index 633e67f356..b1754861c0 100644 --- a/core/src/main/resources/hudson/model/AbstractModelObject/descriptionForm.jelly +++ b/core/src/main/resources/hudson/model/AbstractModelObject/descriptionForm.jelly @@ -30,14 +30,14 @@ THE SOFTWARE. - + - +
diff --git a/core/src/main/resources/hudson/model/AbstractProject/changes.jelly b/core/src/main/resources/hudson/model/AbstractProject/changes.jelly index bc2ad59d22..dd6ec243a7 100644 --- a/core/src/main/resources/hudson/model/AbstractProject/changes.jelly +++ b/core/src/main/resources/hudson/model/AbstractProject/changes.jelly @@ -31,8 +31,8 @@ THE SOFTWARE. - - + +

diff --git a/core/src/main/resources/hudson/model/AllView/noJob.groovy b/core/src/main/resources/hudson/model/AllView/noJob.groovy index f62125fed9..6a9e355d30 100644 --- a/core/src/main/resources/hudson/model/AllView/noJob.groovy +++ b/core/src/main/resources/hudson/model/AllView/noJob.groovy @@ -111,7 +111,7 @@ div { section(class: "empty-state-section") { ul(class: "empty-state-section-list") { li(class: "content-block") { - a(href: "${rootURL}/${app.securityRealm.loginUrl}?from=${request.requestURI}", + a(href: "${rootURL}/${app.securityRealm.loginUrl}?from=${request2.requestURI}", class: "content-block__link") { span(_("Log in to Jenkins")) span(class: "trailing-icon") { diff --git a/core/src/main/resources/hudson/model/ComputerSet/_new.jelly b/core/src/main/resources/hudson/model/ComputerSet/_new.jelly index 36e2f23fd7..5d3a79782e 100644 --- a/core/src/main/resources/hudson/model/ComputerSet/_new.jelly +++ b/core/src/main/resources/hudson/model/ComputerSet/_new.jelly @@ -32,7 +32,7 @@ THE SOFTWARE. - + @@ -40,7 +40,7 @@ THE SOFTWARE. - + diff --git a/core/src/main/resources/hudson/model/ParametersAction/index.jelly b/core/src/main/resources/hudson/model/ParametersAction/index.jelly index a035793cfa..c8e8bf3aaf 100644 --- a/core/src/main/resources/hudson/model/ParametersAction/index.jelly +++ b/core/src/main/resources/hudson/model/ParametersAction/index.jelly @@ -30,7 +30,7 @@ THE SOFTWARE. - + ${title} diff --git a/core/src/main/resources/hudson/model/ParametersDefinitionProperty/index.jelly b/core/src/main/resources/hudson/model/ParametersDefinitionProperty/index.jelly index 1302960c1a..0bea62baf0 100644 --- a/core/src/main/resources/hudson/model/ParametersDefinitionProperty/index.jelly +++ b/core/src/main/resources/hudson/model/ParametersDefinitionProperty/index.jelly @@ -40,7 +40,7 @@ THE SOFTWARE.

${it.job.pronoun} ${it.job.displayName}

${%description}

- + diff --git a/core/src/main/resources/hudson/model/Run/delete-retry.jelly b/core/src/main/resources/hudson/model/Run/delete-retry.jelly index 79dfa6beed..5e405e5284 100644 --- a/core/src/main/resources/hudson/model/Run/delete-retry.jelly +++ b/core/src/main/resources/hudson/model/Run/delete-retry.jelly @@ -20,7 +20,7 @@

diff --git a/core/src/main/resources/hudson/model/View/index.jelly b/core/src/main/resources/hudson/model/View/index.jelly index 14632b8e60..661e2e22ce 100644 --- a/core/src/main/resources/hudson/model/View/index.jelly +++ b/core/src/main/resources/hudson/model/View/index.jelly @@ -44,7 +44,7 @@ THE SOFTWARE. -