Skip to content

Commit 3461afa

Browse files
committed
Migrate from EE 8 to EE 9
1 parent cc4db9b commit 3461afa

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pom.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.jenkins-ci.plugins</groupId>
55
<artifactId>plugin</artifactId>
6-
<version>4.88</version>
6+
<version>5.7</version>
77
</parent>
88

99
<artifactId>powershell</artifactId>
@@ -39,7 +39,9 @@
3939
</scm>
4040

4141
<properties>
42-
<jenkins.version>2.452.4</jenkins.version>
42+
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
43+
<jenkins.baseline>2.479</jenkins.baseline>
44+
<jenkins.version>${jenkins.baseline}.1</jenkins.version>
4345
</properties>
4446

4547
<repositories>

src/main/java/hudson/plugins/powershell/PowerShellInstallation.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import jenkins.model.Jenkins;
1717
import net.sf.json.JSONObject;
1818
import org.kohsuke.stapler.DataBoundConstructor;
19-
import org.kohsuke.stapler.StaplerRequest;
19+
import org.kohsuke.stapler.StaplerRequest2;
2020

2121
import java.io.IOException;
2222
import java.lang.reflect.Array;
@@ -91,7 +91,7 @@ public String getDisplayName() {
9191
}
9292

9393
@Override
94-
public boolean configure(StaplerRequest req, JSONObject json) {
94+
public boolean configure(StaplerRequest2 req, JSONObject json) {
9595
setInstallations(req.bindJSONToList(PowerShellInstallation.class, json.get("tool"))
9696
.toArray((PowerShellInstallation[]) Array.newInstance(PowerShellInstallation.class, 0)));
9797
save();

0 commit comments

Comments
 (0)