File tree Expand file tree Collapse file tree 3 files changed +15
-13
lines changed
src/main/java/hudson/plugins/s3 Expand file tree Collapse file tree 3 files changed +15
-13
lines changed 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 >5.4 </version >
6+ <version >5.7 </version >
77 </parent >
88
99 <artifactId >s3</artifactId >
1010 <packaging >hpi</packaging >
1111 <version >${changelist} </version >
1212 <name >Jenkins S3 publisher plugin</name >
13- <url >https://github.com/jenkinsci/s3 -plugin</url >
13+ <url >https://github.com/jenkinsci/${project.artifactId} -plugin</url >
1414
1515 <properties >
1616 <changelist >999999-SNAPSHOT</changelist >
17- <gitHubRepo >jenkinsci/s3-plugin</gitHubRepo >
18- <jenkins .version>2.479.1</jenkins .version>
17+ <gitHubRepo >jenkinsci/${project.artifactId}-plugin</gitHubRepo >
18+ <!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
19+ <jenkins .baseline>2.479</jenkins .baseline>
20+ <jenkins .version>${jenkins.baseline} .1</jenkins .version>
1921 </properties >
2022
2123 <developers >
100102 <dependencies >
101103 <dependency >
102104 <groupId >io.jenkins.tools.bom</groupId >
103- <artifactId >bom-2.479 .x</artifactId >
104- <version >3875.v1df09947cde6 </version >
105+ <artifactId >bom-${jenkins.baseline} .x</artifactId >
106+ <version >3893.v213a_42768d35 </version >
105107 <type >pom</type >
106108 <scope >import</scope >
107109 </dependency >
Original file line number Diff line number Diff line change 77import java .util .Date ;
88import java .util .List ;
99
10- import javax .servlet .ServletException ;
10+ import jakarta .servlet .ServletException ;
1111
1212import com .amazonaws .services .s3 .AmazonS3 ;
1313import com .amazonaws .services .s3 .model .GeneratePresignedUrlRequest ;
1414import com .amazonaws .services .s3 .model .ResponseHeaderOverrides ;
1515import hudson .Functions ;
1616import jenkins .model .RunAction2 ;
17- import org .kohsuke .stapler .StaplerRequest ;
18- import org .kohsuke .stapler .StaplerResponse ;
17+ import org .kohsuke .stapler .StaplerRequest2 ;
18+ import org .kohsuke .stapler .StaplerResponse2 ;
1919
2020import hudson .model .Run ;
2121import org .kohsuke .stapler .export .Exported ;
2222import org .kohsuke .stapler .export .ExportedBean ;
2323
24- import static javax .servlet .http .HttpServletResponse .SC_NOT_FOUND ;
24+ import static jakarta .servlet .http .HttpServletResponse .SC_NOT_FOUND ;
2525
2626@ ExportedBean
2727public class S3ArtifactsAction implements RunAction2 {
@@ -75,7 +75,7 @@ public List<FingerprintRecord> getArtifacts() {
7575 return artifacts ;
7676 }
7777
78- public void doDownload (final StaplerRequest request , final StaplerResponse response ) throws IOException , ServletException {
78+ public void doDownload (final StaplerRequest2 request , final StaplerResponse2 response ) throws IOException , ServletException {
7979 if (Functions .isArtifactsPermissionEnabled ()) {
8080 build .getParent ().checkPermission (Run .ARTIFACTS );
8181 }
Original file line number Diff line number Diff line change 4040import org .kohsuke .stapler .AncestorInPath ;
4141import org .kohsuke .stapler .DataBoundConstructor ;
4242import org .kohsuke .stapler .QueryParameter ;
43- import org .kohsuke .stapler .StaplerRequest ;
43+ import org .kohsuke .stapler .StaplerRequest2 ;
4444import org .kohsuke .stapler .interceptor .RequirePOST ;
4545
4646import java .io .IOException ;
@@ -483,7 +483,7 @@ public String getHelpFile() {
483483 }
484484
485485 @ Override
486- public boolean configure (StaplerRequest req , JSONObject json ) {
486+ public boolean configure (StaplerRequest2 req , JSONObject json ) {
487487 final JSONArray array = json .optJSONArray ("profile" );
488488 if (array != null ) {
489489 profiles .replaceBy (req .bindJSONToList (S3Profile .class , array ));
You can’t perform that action at this time.
0 commit comments