diff --git a/pom.xml b/pom.xml index 097fc081..7b1f1bdb 100644 --- a/pom.xml +++ b/pom.xml @@ -38,15 +38,15 @@ 999999-SNAPSHOT - 2.401.3 + 2.440 jenkinsci/${project.artifactId}-plugin io.jenkins.tools.bom - bom-2.401.x - 2329.v078520e55c19 + bom-2.440.x + 2746.vb_79a_1d3e7b_c8 pom import diff --git a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStepExecution.java b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStepExecution.java index 971574ad..c358b9fc 100644 --- a/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStepExecution.java +++ b/src/main/java/org/jenkinsci/plugins/workflow/support/steps/input/InputStepExecution.java @@ -24,6 +24,7 @@ import hudson.util.FormValidation; import hudson.util.FormValidation.Kind; import hudson.util.HttpResponses; +import jenkins.console.ConsoleUrlProvider; import jenkins.model.IdStrategy; import jenkins.model.Jenkins; import net.sf.json.JSONArray; @@ -206,7 +207,7 @@ public HttpResponse doSubmit(StaplerRequest request) throws IOException, Servlet } // go back to the Run console page - return HttpResponses.redirectTo("../../console"); + return HttpResponses.redirectTo(ConsoleUrlProvider.getRedirectUrl(getRun())); } /**