File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed
java/org/jenkinsci/plugins/database
resources/org/jenkinsci/plugins/database/RootDatabaseConsole
test/java/org/jenkinsci/plugins/database Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change 1
1
buildPlugin(useContainerAgent : true , configurations : [
2
- [ platform : ' linux' , jdk : ' 11 ' ],
3
- [ platform : ' windows' , jdk : ' 11 ' ],
2
+ [ platform : ' linux' , jdk : ' 21 ' ],
3
+ [ platform : ' windows' , jdk : ' 17 ' ],
4
4
])
Original file line number Diff line number Diff line change 3
3
<parent >
4
4
<groupId >org.jenkins-ci.plugins</groupId >
5
5
<artifactId >plugin</artifactId >
6
- <version >4.88 </version >
6
+ <version >5.7 </version >
7
7
<relativePath />
8
8
</parent >
9
9
16
16
<properties >
17
17
<changelist >999999-SNAPSHOT</changelist >
18
18
<gitHubRepo >jenkinsci/database-plugin</gitHubRepo >
19
- <jenkins .baseline>2.452 </jenkins .baseline>
20
- <jenkins .version>${jenkins.baseline} .3 </jenkins .version>
19
+ <jenkins .baseline>2.479 </jenkins .baseline>
20
+ <jenkins .version>${jenkins.baseline} .1 </jenkins .version>
21
21
22
22
<jenkins .opentelemetry-api.version>1.43.0-38.v1a_9b_53e3f70f</jenkins .opentelemetry-api.version>
23
23
<opentelemetry-instrumentation .version>2.6.0</opentelemetry-instrumentation .version>
28
28
<dependency >
29
29
<groupId >io.jenkins.tools.bom</groupId >
30
30
<artifactId >bom-${jenkins.baseline}.x</artifactId >
31
- <version >3435.v238d66a_043fb_ </version >
31
+ <version >3893.v213a_42768d35 </version >
32
32
<scope >import</scope >
33
33
<type >pom</type >
34
34
</dependency >
Original file line number Diff line number Diff line change 15
15
import org .kohsuke .stapler .QueryParameter ;
16
16
import org .kohsuke .stapler .verb .POST ;
17
17
18
- import javax .servlet .http .HttpServletRequest ;
18
+ import jakarta .servlet .http .HttpServletRequest ;
19
19
import javax .sql .DataSource ;
20
20
import java .io .File ;
21
21
import java .sql .SQLException ;
Original file line number Diff line number Diff line change 3
3
import hudson .Extension ;
4
4
import jenkins .model .GlobalConfiguration ;
5
5
import net .sf .json .JSONObject ;
6
- import org .kohsuke .stapler .StaplerRequest ;
6
+ import org .kohsuke .stapler .StaplerRequest2 ;
7
7
8
8
import edu .umd .cs .findbugs .annotations .CheckForNull ;
9
9
@@ -46,7 +46,7 @@ public void setDatabase(Database database) {
46
46
}
47
47
48
48
@ Override
49
- public boolean configure (StaplerRequest req , JSONObject json ) throws FormException {
49
+ public boolean configure (StaplerRequest2 req , JSONObject json ) throws FormException {
50
50
req .bindJSON (this , json );
51
51
save ();
52
52
return true ;
Original file line number Diff line number Diff line change 6
6
import jenkins .model .Jenkins ;
7
7
import net .sf .json .JSONObject ;
8
8
import org .kohsuke .stapler .DataBoundConstructor ;
9
- import org .kohsuke .stapler .StaplerRequest ;
9
+ import org .kohsuke .stapler .StaplerRequest2 ;
10
10
11
11
import edu .umd .cs .findbugs .annotations .CheckForNull ;
12
12
import edu .umd .cs .findbugs .annotations .NonNull ;
@@ -61,7 +61,7 @@ public void setDatabase(PerItemDatabase database) {
61
61
this .database = database ;
62
62
}
63
63
64
- @ Override public boolean configure (StaplerRequest req , JSONObject json ) throws FormException {
64
+ @ Override public boolean configure (StaplerRequest2 req , JSONObject json ) throws FormException {
65
65
req .bindJSON (this , json );
66
66
save ();
67
67
return true ;
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ l.layout{
18
18
}
19
19
}
20
20
21
- if (request . getAttribute(" message" )!= null ) {
21
+ if (request2 . getAttribute(" message" )!= null ) {
22
22
p(message)
23
23
}
24
24
25
- if (request . getAttribute(" r" )!= null ) {
25
+ if (request2 . getAttribute(" r" )!= null ) {
26
26
// renders the result
27
27
h2(" Result" )
28
28
table {
Original file line number Diff line number Diff line change 5
5
import net .sf .json .JSONObject ;
6
6
import org .jenkinsci .plugins .database .Database ;
7
7
import org .jvnet .hudson .test .TestExtension ;
8
- import org .kohsuke .stapler .StaplerRequest ;
8
+ import org .kohsuke .stapler .StaplerRequest2 ;
9
9
10
10
/**
11
11
* Example of how to define a configuration that involves database.
@@ -43,7 +43,7 @@ public void setDatabase(Database database) {
43
43
* (That is, update the {@link #database} field.
44
44
*/
45
45
@ Override
46
- public boolean configure (StaplerRequest req , JSONObject json ) throws FormException {
46
+ public boolean configure (StaplerRequest2 req , JSONObject json ) throws FormException {
47
47
req .bindJSON (this ,json );
48
48
save ();
49
49
return true ;
You can’t perform that action at this time.
0 commit comments