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 11buildPlugin(useContainerAgent : true , configurations : [
2- [ platform : ' linux' , jdk : ' 11 ' ],
3- [ platform : ' windows' , jdk : ' 11 ' ],
2+ [ platform : ' linux' , jdk : ' 21 ' ],
3+ [ platform : ' windows' , jdk : ' 17 ' ],
44])
Original file line number Diff line number Diff line change 33 <parent >
44 <groupId >org.jenkins-ci.plugins</groupId >
55 <artifactId >plugin</artifactId >
6- <version >4.88 </version >
6+ <version >5.7 </version >
77 <relativePath />
88 </parent >
99
1616 <properties >
1717 <changelist >999999-SNAPSHOT</changelist >
1818 <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>
2121
2222 <jenkins .opentelemetry-api.version>1.43.0-38.v1a_9b_53e3f70f</jenkins .opentelemetry-api.version>
2323 <opentelemetry-instrumentation .version>2.6.0</opentelemetry-instrumentation .version>
2828 <dependency >
2929 <groupId >io.jenkins.tools.bom</groupId >
3030 <artifactId >bom-${jenkins.baseline}.x</artifactId >
31- <version >3435.v238d66a_043fb_ </version >
31+ <version >3893.v213a_42768d35 </version >
3232 <scope >import</scope >
3333 <type >pom</type >
3434 </dependency >
Original file line number Diff line number Diff line change 1515import org .kohsuke .stapler .QueryParameter ;
1616import org .kohsuke .stapler .verb .POST ;
1717
18- import javax .servlet .http .HttpServletRequest ;
18+ import jakarta .servlet .http .HttpServletRequest ;
1919import javax .sql .DataSource ;
2020import java .io .File ;
2121import java .sql .SQLException ;
Original file line number Diff line number Diff line change 33import hudson .Extension ;
44import jenkins .model .GlobalConfiguration ;
55import net .sf .json .JSONObject ;
6- import org .kohsuke .stapler .StaplerRequest ;
6+ import org .kohsuke .stapler .StaplerRequest2 ;
77
88import edu .umd .cs .findbugs .annotations .CheckForNull ;
99
@@ -46,7 +46,7 @@ public void setDatabase(Database database) {
4646 }
4747
4848 @ Override
49- public boolean configure (StaplerRequest req , JSONObject json ) throws FormException {
49+ public boolean configure (StaplerRequest2 req , JSONObject json ) throws FormException {
5050 req .bindJSON (this , json );
5151 save ();
5252 return true ;
Original file line number Diff line number Diff line change 66import jenkins .model .Jenkins ;
77import net .sf .json .JSONObject ;
88import org .kohsuke .stapler .DataBoundConstructor ;
9- import org .kohsuke .stapler .StaplerRequest ;
9+ import org .kohsuke .stapler .StaplerRequest2 ;
1010
1111import edu .umd .cs .findbugs .annotations .CheckForNull ;
1212import edu .umd .cs .findbugs .annotations .NonNull ;
@@ -61,7 +61,7 @@ public void setDatabase(PerItemDatabase database) {
6161 this .database = database ;
6262 }
6363
64- @ Override public boolean configure (StaplerRequest req , JSONObject json ) throws FormException {
64+ @ Override public boolean configure (StaplerRequest2 req , JSONObject json ) throws FormException {
6565 req .bindJSON (this , json );
6666 save ();
6767 return true ;
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ l.layout{
1818 }
1919 }
2020
21- if (request . getAttribute(" message" )!= null ) {
21+ if (request2 . getAttribute(" message" )!= null ) {
2222 p(message)
2323 }
2424
25- if (request . getAttribute(" r" )!= null ) {
25+ if (request2 . getAttribute(" r" )!= null ) {
2626 // renders the result
2727 h2(" Result" )
2828 table {
Original file line number Diff line number Diff line change 55import net .sf .json .JSONObject ;
66import org .jenkinsci .plugins .database .Database ;
77import org .jvnet .hudson .test .TestExtension ;
8- import org .kohsuke .stapler .StaplerRequest ;
8+ import org .kohsuke .stapler .StaplerRequest2 ;
99
1010/**
1111 * Example of how to define a configuration that involves database.
@@ -43,7 +43,7 @@ public void setDatabase(Database database) {
4343 * (That is, update the {@link #database} field.
4444 */
4545 @ Override
46- public boolean configure (StaplerRequest req , JSONObject json ) throws FormException {
46+ public boolean configure (StaplerRequest2 req , JSONObject json ) throws FormException {
4747 req .bindJSON (this ,json );
4848 save ();
4949 return true ;
You can’t perform that action at this time.
0 commit comments