Skip to content

Commit 27299c0

Browse files
author
Ubuntu
committed
add regions us-east-2, ca-central-1, eu-west-2 and cn-north-1 to use new Jenkins Plugin-aws-java-sdk 1.11.119
1 parent 2f688d1 commit 27299c0

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

pom.xml

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

99
<artifactId>codedeploy</artifactId>
10-
<version>1.16-SNAPSHOT</version>
10+
<version>1.17-SNAPSHOT</version>
1111
<packaging>hpi</packaging>
1212
<groupId>com.amazonaws</groupId>
1313
<name>AWS CodeDeploy Plugin for Jenkins</name>
@@ -17,7 +17,7 @@
1717
<developers>
1818
<developer>
1919
<id>jmcfar</id>
20-
<name>Josh McFarlane</name>
20+
<name>Josh Mcfarlane</name>
2121
<email>jmcfar@amazon.com</email>
2222
</developer>
2323
</developers>
@@ -54,7 +54,7 @@
5454
<dependency>
5555
<groupId>org.jenkins-ci.plugins</groupId>
5656
<artifactId>aws-java-sdk</artifactId>
57-
<version>1.11.37</version>
57+
<version>1.11.119</version>
5858
</dependency>
5959
</dependencies>
6060

src/main/java/com/amazonaws/codedeploy/AWSClients.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public AWSClients(String region, AWSCredentials credentials, String proxyHost, i
7272
this.s3 = credentials != null ? new AmazonS3Client(credentials, clientCfg) : new AmazonS3Client(clientCfg);
7373
this.codedeploy = credentials != null ? new AmazonCodeDeployClient(credentials, clientCfg) : new AmazonCodeDeployClient(clientCfg);
7474
codedeploy.setRegion(Region.getRegion(Regions.fromName(this.region)));
75+
s3.setRegion(Region.getRegion(Regions.fromName(this.region)));
7576
}
7677

7778
public static AWSClients fromDefaultCredentialChain(String region, String proxyHost, int proxyPort) {

src/main/java/com/amazonaws/codedeploy/AWSCodeDeployPublisher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public class AWSCodeDeployPublisher extends Publisher {
7979
public static final long DEFAULT_TIMEOUT_SECONDS = 900;
8080
public static final long DEFAULT_POLLING_FREQUENCY_SECONDS = 15;
8181
public static final String ROLE_SESSION_NAME = "jenkins-codedeploy-plugin";
82-
private static final Regions[] AVAILABLE_REGIONS = {Regions.AP_NORTHEAST_1, Regions.AP_SOUTHEAST_1, Regions.AP_SOUTHEAST_2, Regions.EU_WEST_1, Regions.US_EAST_1, Regions.US_WEST_2, Regions.EU_CENTRAL_1, Regions.US_WEST_1, Regions.SA_EAST_1, Regions.AP_NORTHEAST_2, Regions.AP_SOUTH_1};
82+
private static final Regions[] AVAILABLE_REGIONS = {Regions.AP_NORTHEAST_1, Regions.AP_SOUTHEAST_1, Regions.AP_SOUTHEAST_2, Regions.EU_WEST_1, Regions.US_EAST_1, Regions.US_WEST_2, Regions.EU_CENTRAL_1, Regions.US_WEST_1, Regions.SA_EAST_1, Regions.AP_NORTHEAST_2, Regions.AP_SOUTH_1, Regions.US_EAST_2, Regions.CA_CENTRAL_1, Regions.EU_WEST_2, Regions.CN_NORTH_1};
8383

8484
private final String s3bucket;
8585
private final String s3prefix;

0 commit comments

Comments
 (0)