Skip to content

Commit 15e81a1

Browse files
authored
Require Jenkins 2.479.3 or newer (#126)
1 parent 5b0a1b2 commit 15e81a1

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.jenkins-ci.plugins</groupId>
77
<artifactId>plugin</artifactId>
8-
<version>4.88</version>
8+
<version>5.7</version>
99
<relativePath />
1010
</parent>
1111

@@ -33,8 +33,8 @@
3333
<properties>
3434
<changelist>999999-SNAPSHOT</changelist>
3535
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
36-
<jenkins.baseline>2.361</jenkins.baseline>
37-
<jenkins.version>${jenkins.baseline}.4</jenkins.version>
36+
<jenkins.baseline>2.479</jenkins.baseline>
37+
<jenkins.version>${jenkins.baseline}.3</jenkins.version>
3838
<gitHubRepo>jenkinsci/${project.artifactId}-plugin</gitHubRepo>
3939
</properties>
4040

@@ -56,7 +56,7 @@
5656
<dependency>
5757
<groupId>io.jenkins.tools.bom</groupId>
5858
<artifactId>bom-${jenkins.baseline}.x</artifactId>
59-
<version>2102.v854b_fec19c92</version>
59+
<version>4228.v0a_71308d905b_</version>
6060
<scope>import</scope>
6161
<type>pom</type>
6262
</dependency>

src/test/java/org/jenkinsci/main/modules/instance_identity/ReadWriteKeyTest.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import java.nio.charset.StandardCharsets;
3434
import java.nio.file.Files;
3535
import java.nio.file.Path;
36-
import java.nio.file.Paths;
3736
import java.security.KeyPair;
3837
import java.security.Security;
3938
import org.bouncycastle.jce.provider.BouncyCastleProvider;
@@ -54,19 +53,19 @@ public class ReadWriteKeyTest {
5453

5554
@BeforeClass
5655
public static void setUpBC() throws URISyntaxException, IOException {
57-
PEM_PCKS1_FILE = Paths.get(ReadWriteKeyTest.class
56+
PEM_PCKS1_FILE = Path.of(ReadWriteKeyTest.class
5857
.getClassLoader()
5958
.getResource("private-key-pcks1.pem")
6059
.toURI());
61-
PEM_PCKS8_FILE = Paths.get(ReadWriteKeyTest.class
60+
PEM_PCKS8_FILE = Path.of(ReadWriteKeyTest.class
6261
.getClassLoader()
6362
.getResource("private-key-pcks8.pem")
6463
.toURI());
65-
KEY_PRIVATE_ENCODED = Files.readAllBytes(Paths.get(ReadWriteKeyTest.class
64+
KEY_PRIVATE_ENCODED = Files.readAllBytes(Path.of(ReadWriteKeyTest.class
6665
.getClassLoader()
6766
.getResource("private-key-private-encoded.bin")
6867
.toURI()));
69-
KEY_PUBLIC_ENCODED = Files.readAllBytes(Paths.get(ReadWriteKeyTest.class
68+
KEY_PUBLIC_ENCODED = Files.readAllBytes(Path.of(ReadWriteKeyTest.class
7069
.getClassLoader()
7170
.getResource("private-key-public-encoded.bin")
7271
.toURI()));

0 commit comments

Comments
 (0)