Skip to content

Commit

Permalink
Merge pull request #165 from basil/jakarta
Browse files Browse the repository at this point in the history
Migrate from EE 8 to EE 9
  • Loading branch information
StefanSpieker authored Jan 26, 2025
2 parents f4b16ee + 4ae4707 commit 134488b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.88</version>
<version>5.5</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -71,8 +71,8 @@
<revision>2.1.2</revision>
<changelist>-SNAPSHOT</changelist>
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
<jenkins.baseline>2.440</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
<jenkins.baseline>2.479</jenkins.baseline>
<jenkins.version>${jenkins.baseline}.1</jenkins.version>
<gitHubRepo>jenkinsci/thin-backup-plugin</gitHubRepo>
<spotless.check.skip>false</spotless.check.skip>
<maven-hpi-plugin.injectedTestName>InjectedIT</maven-hpi-plugin.injectedTestName>
Expand All @@ -84,7 +84,7 @@
<dependency>
<groupId>io.jenkins.tools.bom</groupId>
<artifactId>bom-${jenkins.baseline}.x</artifactId>
<version>3435.v238d66a_043fb_</version>
<version>3850.vb_c5319efa_e29</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
import org.jvnet.hudson.plugins.thinbackup.restore.HudsonRestore;
import org.jvnet.hudson.plugins.thinbackup.utils.Utils;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerResponse;
import org.kohsuke.stapler.StaplerRequest2;
import org.kohsuke.stapler.StaplerResponse2;
import org.kohsuke.stapler.verb.POST;

/**
Expand Down Expand Up @@ -71,7 +71,7 @@ public String getDescription() {
}

@POST
public void doBackupManual(final StaplerRequest res, final StaplerResponse rsp) throws IOException {
public void doBackupManual(final StaplerRequest2 res, final StaplerResponse2 rsp) throws IOException {
final Jenkins jenkins = Jenkins.get();
jenkins.checkPermission(Jenkins.ADMINISTER);
LOGGER.info("Starting manual backup.");
Expand All @@ -89,8 +89,8 @@ protected void execute(final TaskListener arg0) {

@POST
public void doRestore(
final StaplerRequest res,
final StaplerResponse rsp,
final StaplerRequest2 res,
final StaplerResponse2 rsp,
@QueryParameter("restoreBackupFrom") final String restoreBackupFrom,
@QueryParameter("restoreNextBuildNumber") final String restoreNextBuildNumber,
@QueryParameter("restorePlugins") final String restorePlugins)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.DataBoundSetter;
import org.kohsuke.stapler.QueryParameter;
import org.kohsuke.stapler.StaplerRequest;
import org.kohsuke.stapler.StaplerRequest2;
import org.kohsuke.stapler.verb.POST;

@Extension
Expand Down Expand Up @@ -99,7 +99,7 @@ public File getJenkinsHome() {
}

@Override
public boolean configure(StaplerRequest req, JSONObject json) throws FormException {
public boolean configure(StaplerRequest2 req, JSONObject json) throws FormException {

try (BulkChange bc = new BulkChange(this)) {
req.bindJSON(this, json);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ public void testRemovingEmptyDirs() throws IOException {
throw new RuntimeException(e);
}

assertThat(filesAndFolders.size(), greaterThan(75));
assertThat(filesAndFolders.size(), greaterThan(73));

// run backup (which will clean up empty folders)
new HudsonBackup(thinBackupPlugin, BackupType.FULL, date, r.jenkins).backup();
Expand Down

0 comments on commit 134488b

Please sign in to comment.