Commit c129ae7 1 parent aecddee commit c129ae7 Copy full SHA for c129ae7
File tree 9 files changed +17
-17
lines changed
src/main/java/org/jenkinsci/plugins
9 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 2
2
3
3
/* `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */
4
4
buildPlugin(useContainerAgent : true , configurations : [
5
- [platform : ' linux' , jdk : 11 ],
5
+ [platform : ' linux' , jdk : 21 ],
6
6
[platform : ' windows' , jdk : 17 ],
7
7
])
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >org.jenkins-ci.plugins</groupId >
7
7
<artifactId >plugin</artifactId >
8
- <version >4.72</version >
8
+ <version >5.7</version >
9
+ <relativePath />
9
10
</parent >
10
11
11
12
<artifactId >vsphere-cloud</artifactId >
61
62
<revision >2.28</revision >
62
63
<changelist >-SNAPSHOT</changelist >
63
64
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
64
- <jenkins .baseline>2.387 </jenkins .baseline>
65
- <jenkins .version>${jenkins.baseline} .3 </jenkins .version>
65
+ <jenkins .baseline>2.479 </jenkins .baseline>
66
+ <jenkins .version>${jenkins.baseline} .1 </jenkins .version>
66
67
<gitHubRepo >jenkinsci/${project.artifactId}-plugin</gitHubRepo >
67
68
<spotbugs .skip>true</spotbugs .skip>
68
69
</properties >
72
73
<dependency >
73
74
<groupId >io.jenkins.tools.bom</groupId >
74
75
<artifactId >bom-${jenkins.baseline}.x</artifactId >
75
- <version >2329.v078520e55c19 </version >
76
+ <version >3944.v1a_e4f8b_452db_ </version >
76
77
<scope >import</scope >
77
78
<type >pom</type >
78
79
</dependency >
116
117
<dependency >
117
118
<groupId >org.jenkins-ci.plugins</groupId >
118
119
<artifactId >node-iterator-api</artifactId >
119
- <version >49.v58a_8b_35f8363</version >
120
120
</dependency >
121
121
<dependency >
122
122
<groupId >org.jenkins-ci.plugins</groupId >
Original file line number Diff line number Diff line change 26
26
import org .kohsuke .stapler .DataBoundConstructor ;
27
27
import org .kohsuke .stapler .QueryParameter ;
28
28
import org .kohsuke .stapler .Stapler ;
29
- import org .kohsuke .stapler .StaplerRequest ;
29
+ import org .kohsuke .stapler .StaplerRequest2 ;
30
30
31
31
import edu .umd .cs .findbugs .annotations .CheckForNull ;
32
32
import java .io .IOException ;
@@ -603,8 +603,8 @@ public static List<vSphereCloud> findAllVsphereClouds(String jobName) {
603
603
String [] path = new String [0 ];
604
604
Folder prevFolder = null ;
605
605
606
- if (Stapler .getCurrentRequest () != null ){
607
- path = Stapler .getCurrentRequest ().getRequestURI ().split ("/" );
606
+ if (Stapler .getCurrentRequest2 () != null ){
607
+ path = Stapler .getCurrentRequest2 ().getRequestURI ().split ("/" );
608
608
} else if (jobName != null ) {
609
609
path = jobName .split ("/" );
610
610
}
@@ -685,7 +685,7 @@ public String getDisplayName() {
685
685
}
686
686
687
687
@ Override
688
- public boolean configure (StaplerRequest req , JSONObject o )
688
+ public boolean configure (StaplerRequest2 req , JSONObject o )
689
689
throws FormException {
690
690
vsHost = o .getString ("vsHost" );
691
691
username = o .getString ("username" );
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ public ListBoxModel doFillServerNameItems(@AncestorInPath Item context) {
155
155
Folder prevFolder = null ;
156
156
157
157
try {
158
- String [] path = Stapler .getCurrentRequest ().getRequestURI ().split ("/" );
158
+ String [] path = Stapler .getCurrentRequest2 ().getRequestURI ().split ("/" );
159
159
for (String item : path ) {
160
160
161
161
if (item .equals ("job" ) || item .equals ("jenkins" ))
Original file line number Diff line number Diff line change 26
26
import org .kohsuke .stapler .QueryParameter ;
27
27
28
28
import edu .umd .cs .findbugs .annotations .NonNull ;
29
- import javax .servlet .ServletException ;
29
+ import jakarta .servlet .ServletException ;
30
30
import java .io .IOException ;
31
31
import java .io .PrintStream ;
32
32
Original file line number Diff line number Diff line change 34
34
import org .kohsuke .stapler .QueryParameter ;
35
35
36
36
import edu .umd .cs .findbugs .annotations .NonNull ;
37
- import javax .servlet .ServletException ;
37
+ import jakarta .servlet .ServletException ;
38
38
39
39
import java .io .IOException ;
40
40
import java .io .PrintStream ;
Original file line number Diff line number Diff line change 26
26
import org .kohsuke .stapler .QueryParameter ;
27
27
28
28
import edu .umd .cs .findbugs .annotations .NonNull ;
29
- import javax .servlet .ServletException ;
29
+ import jakarta .servlet .ServletException ;
30
30
import java .io .IOException ;
31
31
import java .io .PrintStream ;
32
32
Original file line number Diff line number Diff line change 31
31
import org .kohsuke .stapler .QueryParameter ;
32
32
33
33
import edu .umd .cs .findbugs .annotations .NonNull ;
34
- import javax .servlet .ServletException ;
34
+ import jakarta .servlet .ServletException ;
35
35
import java .io .IOException ;
36
36
import java .io .PrintStream ;
37
37
import java .util .Arrays ;
Original file line number Diff line number Diff line change 12
12
import org .jenkinsci .plugins .vSphereCloud ;
13
13
import org .kohsuke .stapler .AncestorInPath ;
14
14
import org .kohsuke .stapler .DataBoundConstructor ;
15
- import org .kohsuke .stapler .StaplerRequest ;
15
+ import org .kohsuke .stapler .StaplerRequest2 ;
16
16
import org .kohsuke .stapler .export .Exported ;
17
17
18
18
import java .util .List ;
@@ -43,7 +43,7 @@ private StringParameterValue checkValue(StringParameterValue value) {
43
43
}
44
44
45
45
@ Override
46
- public ParameterValue createValue (StaplerRequest req , JSONObject jo ) {
46
+ public ParameterValue createValue (StaplerRequest2 req , JSONObject jo ) {
47
47
StringParameterValue value = req .bindJSON (StringParameterValue .class , jo );
48
48
value .setDescription (getDescription ());
49
49
return checkValue (value );
You can’t perform that action at this time.
0 commit comments