Skip to content

Commit

Permalink
Merge pull request #145 from jgreffe/JENKINS-71715
Browse files Browse the repository at this point in the history
[JENKINS-71715] Update minimum supported Jenkins version to 2.440 to be able to use new `ConsoleUrlProvider` extension point to redirect to the console
  • Loading branch information
dwnusbaum authored Jan 29, 2024
2 parents cdb4f35 + 6712b79 commit 4b70bff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
</pluginRepositories>
<properties>
<changelist>999999-SNAPSHOT</changelist>
<jenkins.version>2.401.3</jenkins.version>
<jenkins.version>2.440</jenkins.version>
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-2.401.x</artifactId>
<version>2329.v078520e55c19</version>
<artifactId>bom-2.440.x</artifactId>
<version>2746.vb_79a_1d3e7b_c8</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()));
}

/**
Expand Down

0 comments on commit 4b70bff

Please sign in to comment.